[#bsl-bitset-set-0c] = xref:bsl.adoc[bsl]::xref:bsl/bitset.adoc[bitset]::set :relfileprefix: ../../ :mrdocs: `set` overloads == Synopses Declared in `<bslstl_bitset.h>` Set all bits of this bitset to 1 and return a reference to this modifiable bitset. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/bitset.adoc[bitset<N>]& xref:bsl/bitset/set-06.adoc[set]() noexcept; ---- [.small]#xref:bsl/bitset/set-06.adoc[_» more..._]# Set the bit at the specified `pos` of this bitset to 1 and return a reference to this modifiable bitset. Optionally specify `val` as the value to set the bit. If `val` is non‐zero, the bit is set to 1, otherwise the bit is set to 0. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/bitset.adoc[bitset<N>]& xref:bsl/bitset/set-04.adoc[set]( std::size_t pos, int val = true); ---- [.small]#xref:bsl/bitset/set-04.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#