mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
explain why not vector<bool>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42324 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fdd0837448
commit
7086ce7268
@ -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>
|
||||
|
||||
<!-- _______________________________________________________________________ -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user