diff options
author | Chris Lattner <sabre@nondot.org> | 2007-09-25 22:37:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-09-25 22:37:50 +0000 |
commit | ccc1b69a524b8058e2c8c08174652e477adf997f (patch) | |
tree | 61b6cd264459306179e66f54c93da1c1804854e7 /llvm/docs/ProgrammersManual.html | |
parent | 5321fa44f47be9ae13b6437b5f895bde78e0d2b7 (diff) | |
download | bcm5719-llvm-ccc1b69a524b8058e2c8c08174652e477adf997f.tar.gz bcm5719-llvm-ccc1b69a524b8058e2c8c08174652e477adf997f.zip |
explain why not vector<bool>
llvm-svn: 42324
Diffstat (limited to 'llvm/docs/ProgrammersManual.html')
-rw-r--r-- | llvm/docs/ProgrammersManual.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/llvm/docs/ProgrammersManual.html b/llvm/docs/ProgrammersManual.html index 795b91a76ba..d3b7eefee36 100644 --- a/llvm/docs/ProgrammersManual.html +++ b/llvm/docs/ProgrammersManual.html @@ -1292,8 +1292,15 @@ expensive. Element iteration does not visit elements in a useful order.</p> </div> <div class="doc_text"> -Unlike the other containers, there are only two bit storage containers, and when -to use each is relatively straightforward. +<p>Unlike the other containers, there are only two bit storage containers, and +choosing when to use each is relatively straightforward.</p> + +<p>One additional option is +<tt>std::vector<bool></tt>: we discourage its use for two reasons 1) the +implementation in many common compilers (e.g. commonly available versions of +GCC) is extremely inefficient and 2) the C++ standards committee is likely to +deprecate this container and/or change it significantly somehow. In any case, +please don't use it.</p> </div> <!-- _______________________________________________________________________ --> |