ouuan's blog

By ouuan, history, 4 months ago, In English,

Today I was solving a problem with bitset which needs to find the first set bit (bit with value 1/true). I looked up in C++ Reference but was not able to find a proper function.

Some one else told me that ._Find_first() works (also mentioned in this blog), which is not documented.

I was curious about if there are more undocumented member functions, so I took a look at the source code and found this:

I think the last question is so funny lol

 
 
 
 
  • Vote: I like it  
  • +155
  • Vote: I do not like it  

»
4 months ago, # |
  Vote: I like it +51 Vote: I do not like it

It is reference to this

  • »
    »
    4 months ago, # ^ |
      Vote: I like it +26 Vote: I do not like it

    I'm a Chinese and I know the Chinese saying "One hand can't make a sound", however, I did't realize it when I was reading the English version of bitset..

    • »
      »
      »
      4 months ago, # ^ |
        Vote: I like it +8 Vote: I do not like it

      One hand can't make a sound

      How about using one hand to snap fingers ? (just a harmless idea with no offense in it)

      • »
        »
        »
        »
        4 months ago, # ^ |
          Vote: I like it +11 Vote: I do not like it

        Sorry, the translation should be "A hand can't make sound by clapping" or "A slap won't clap"..

»
4 months ago, # |
  Vote: I like it +28 Vote: I do not like it