aboutsummaryrefslogtreecommitdiffstats
path: root/docs/ProgrammersManual.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-09-25 22:37:50 +0000
committerChris Lattner <sabre@nondot.org>2007-09-25 22:37:50 +0000
commit7086ce72684c302d9898ce0324f691a6a0787669 (patch)
treef920b7a7145dc7fb56a87739173cc2012d44ab1c /docs/ProgrammersManual.html
parentfdd0837448d756becf88da6c6a632c03a637ba57 (diff)
downloadexternal_llvm-7086ce72684c302d9898ce0324f691a6a0787669.zip
external_llvm-7086ce72684c302d9898ce0324f691a6a0787669.tar.gz
external_llvm-7086ce72684c302d9898ce0324f691a6a0787669.tar.bz2
explain why not vector<bool>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/ProgrammersManual.html')
-rw-r--r--docs/ProgrammersManual.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html
index 795b91a..d3b7eef 100644
--- a/docs/ProgrammersManual.html
+++ b/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&lt;bool&gt;</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>
<!-- _______________________________________________________________________ -->