The bitset class includes overloaded constructors for creation of a bitset object.
bitset(); bitset(unsigned long val); template <class charT, class traits, class Allocator> explicit bitset (const basic_string<charT, traits, Allocator>& str, typename basic_string <charT, traits, Allocator>::size_type pos = 0, typename basic_string<charT, traits, Allocator>::size_type n = basic_string <charT, traits, Allocator>::npos);