[#bsl-bitset-2constructor-08b]
= xref:bsl.adoc[bsl]::xref:bsl/bitset.adoc[bitset]::bitset
:relfileprefix: ../../
:mrdocs:

Create a bitset with its first `M` bit positions correspond to bit values in the specified `val`&period; `M` is the smaller of the parameterized `N` and `8 &ast; sizeof(unsigned long long)`&period; If `M &lt; N`, the remaining bit positions are initialized to 0&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
bitset(unsigned long long val) noexcept;
----


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