Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!

Idiom #68 Create a bitset

Create an object x to store n bits (n being potentially large).

#include <bitset>
std::bitset<n> x;

New implementation...
< >
programming-idioms.org