Блог пользователя ouuan

Автор ouuan, история, 5 лет назад, По-английски

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

  • Проголосовать: нравится
  • +155
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится +51 Проголосовать: не нравится

It is reference to this

  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится +26 Проголосовать: не нравится

    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..

    • »
      »
      »
      5 лет назад, # ^ |
        Проголосовать: нравится +8 Проголосовать: не нравится

      One hand can't make a sound

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

      • »
        »
        »
        »
        5 лет назад, # ^ |
          Проголосовать: нравится +11 Проголосовать: не нравится

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

»
5 лет назад, # |
  Проголосовать: нравится +28 Проголосовать: не нравится