set

Syntax:

    #include <bitset>
    bitset<N>& set();
    bitset<N>& set( size_t pos, bool val=true );

The set() function sets all of the bits in the bitset, and returns the bitset. If pos is specified, then only the bit at position pos is set. If val is specified, then the bit is set or reset depending on the value of val.