Return an unsigned long with the same bit pattern as this bitset.

Synopsis

Declared in <bslstl_bitset.h>

unsigned long
to_ulong() const;

Description

Return an unsigned long value that has the same bit value as the bitset. Note that the behavior is undefined if the bitset cannot be represented as an unsigned long.

Return Value

unsigned long with the same bit pattern as this bitset

Created with MrDocs