Talk:cpp/utility/bitset/count
From cppreference.com
Complexity? Presumably O(length of bitset) right? (It could be constant by storing the number of true bits) - what does the standard say? Alec (talk) 14:02, 13 September 2018 (PDT)
- standard says nothing: bitset.members/34. Implementations are of course linear libc++, libstdc++ --Cubbi (talk) 14:12, 13 September 2018 (PDT)