boost::dynamic_bitset::dynamic_bitset :: Boost.DynamicBitset

# boost::dynamic_bitset::dynamic_bitset

Constructor

## Synopsis

Declared in `<boost/dynamic_bitset/dynamic_bitset.hpp>`

    template<
        typename CharT,
        typename Traits,
        typename Alloc>
    explicit
    dynamic_bitset(
        std::basic_string<CharT, Traits, Alloc> const& s,
        std::basic_string<CharT, Traits, Alloc>::size_type pos = 0,
        std::basic_string<CharT, Traits, Alloc>::size_type n = ( std::basic_string< CharT, Traits, Alloc >::npos ),
        size_type num_bits = npos,
        allocator_type const& alloc = allocator_type());

## Parameters

Name | Description
s | The string to construct from.
pos | The start position in the string.
n | The maximum number of characters in the string to consider.
num_bits | The size of the bitset to construct, if different from `npos`.
alloc | The allocator to use.

Created with MrDocs