[#bsl-bitset-to_ulong]
= xref:bsl.adoc[bsl]::xref:bsl/bitset.adoc[bitset]::to&lowbar;ulong
:relfileprefix: ../../
:mrdocs:

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

== Synopsis

Declared in `&lt;bslstl&lowbar;bitset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned long
to&lowbar;ulong() const;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
