Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Why is bitset d...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 9805 of 9984
Post > Topic >>

Why is bitset defined in the associative containers section?

by Seungbeom Kim <musiphil@[EMAIL PROTECTED] > Jul 19, 2008 at 02:34 PM

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! ]
 




 6 Posts in Topic:
Why is bitset defined in the associative containers section?
Seungbeom Kim <musiphi  2008-07-19 14:34:30 
Re: Why is bitset defined in the associative containers section?
Greg Herlihy <greghe@[  2008-07-21 04:58:13 
Re: Why is bitset defined in the associative containers section?
Howard Hinnant <howard  2008-07-21 15:18:47 
Re: Why is bitset defined in the associative containers section?
ram@[EMAIL PROTECTED] (S  2008-07-21 15:19:02 
Re: Why is bitset defined in the associative containers section?
Gennaro Prota <gennaro  2008-07-22 15:35:38 
Re: Why is bitset defined in the associative containers section?
Howard Hinnant <howard  2008-07-22 21:05:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 8:42:54 CDT 2008.