Logo

Programming-Idioms

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

Idiom #68 Create a bitset

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

(let ((x (make-array n :element-type 'bit))))
#include <bitset>
std::bitset<n> x;

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