[#bsl-bitset-to_ulong] = xref:bsl.adoc[bsl]::xref:bsl/bitset.adoc[bitset]::to_ulong :relfileprefix: ../../ :mrdocs: 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`. == Synopsis Declared in `<bslstl_bitset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- unsigned long to_ulong() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#