I cannot find any statement in the standard that says bitset is an
associative container; it clearly doesn't satisfy the associative
container requirements. (On the contrary, it is described as
dealing with "fixed-size *sequences* of bits".)
Then why is it defined in the associative containers section?
I checked the latest draft N2691 and it was still there, implying
that the decision was not a mistake, probably. However it's giving
the wrong impression that bitset is an associative container.
I know that bitset doesn't satisfy the sequence container requirements
either, but I would be surprised somewhat less if it were in the sequence
container section. The best solution would be, IMHO, to take it out of
the associative container section and put it separately (directly under
the containers chapter), if it doesn't satisfy any named requirements.
Is there anything I got wrong? Or any chance it will be fixed in the
next version of the standard?
--
Seungbeom Kim
[ See http://www.gotw.ca/resources/clcm.htm
for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


|