[#BitSet]
= BitSet
:mrdocs:

A bitset supporting at least BITS elements&period;

== Synopsis

Declared in `&lt;util&sol;bitset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;unsigned int BITS&gt;
using BitSet = std::conditional&lowbar;t&lt;(BITS &lt;&equals; 32), bitset&lowbar;detail::IntBitSet&lt;uint32&lowbar;t&gt;, std::conditional&lowbar;t&lt;(BITS &lt;&equals; std&colon;&colon;numeric&lowbar;limits&lt;size&lowbar;t&gt;&colon;&colon;digits), bitset&lowbar;detail::IntBitSet&lt;size&lowbar;t&gt;, bitset&lowbar;detail::MultiIntBitSet&lt;size&lowbar;t, CeilDiv(BITS, size&lowbar;t&lcub;std&colon;&colon;numeric&lowbar;limits&lt;size&lowbar;t&gt;&colon;&colon;digits&rcub;)&gt;&gt;&gt;;
----

== Description

BitSet dispatches to IntBitSet or MultiIntBitSet as appropriate for the requested minimum number of bits&period; Use IntBitSet up to 32&hyphen;bit, or up to 64&hyphen;bit on 64&hyphen;bit platforms&semi; above that, use a MultiIntBitSet of size&lowbar;t&period;


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