What is the performance of std::bitset?
问题 I recently asked a question on Programmers regarding reasons to use manual bit manipulation of primitive types over std::bitset . From that discussion I have concluded that the main reason is its comparatively poorer performance, although I'm not aware of any measured basis for this opinion. So next question is: what is the performance hit, if any, likely to be incurred by using std::bitset over bit-manipulation of a primitive? The question is intentionally broad, because after looking online