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

# boost::dynamic_bitset::to_ulong

Returns the numeric value corresponding to the bits in `*this`.

## Synopsis

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

    unsigned long
    to_ulong() const;

## Throws

`std::overflow_error` if that value is too large to be represented in an `unsigned long`, i.e. if `*this` has any non‐zero bit at a position >= `std::numeric_limits< unsigned long >::digits`.

## Return Value

The numeric value corresponding to the bits in `*this`.

Created with MrDocs