[#BloombergLP-bdlt-DayOfWeekSet]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::DayOfWeekSet
:relfileprefix: ../../
:mrdocs:

This class implements an efficient value&hyphen;semantic, ordered set of `DayOfWeek` values&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;dayofweekset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class DayOfWeekSet;
----

== Description

This set requires a fixed capacity, and all operations operate in constant time, and provide the no&hyphen;throw guarantee&period;

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/DayOfWeekSet/const_iterator.adoc[`const&lowbar;iterator`] 
| Standard nested alias for set container&apos;s constant iterator&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/const_reverse_iterator.adoc[`const&lowbar;reverse&lowbar;iterator`] 
| Standard nested alias for set container&apos;s constant reverse iterator&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/iterator.adoc[`iterator`] 
| Standard nested alias for set container&apos;s iterator&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/reverse_iterator.adoc[`reverse&lowbar;iterator`] 
| Standard nested alias for set container&apos;s reverse iterator&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/DayOfWeekSet/2constructor-0b45.adoc[`DayOfWeekSet`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bdlt/DayOfWeekSet/2destructor.adoc[`&#126;DayOfWeekSet`] [.small]#[destructor]#
| Destroy this object&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/operator_assign.adoc[`operator&equals;`] 
| Assign to this set the value of the specified `rhs` set, and return a reference providing modifiable access to this set&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/add.adoc[`add`] 
| Add the specified `value` to this set&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/areMembers.adoc[`areMembers`] 
| Return `true` if this set contains all elements of the specified `set`, and `false` otherwise&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/bdexStreamIn.adoc[`bdexStreamIn`] 
| Assign to this object the value read from the specified input stream&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/bdexStreamOut.adoc[`bdexStreamOut`] 
| Write this object to the specified output stream using BDEX&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/begin.adoc[`begin`] 
| Return an iterator referencing the first valid element in this set&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/end.adoc[`end`] 
| Return an iterator indicating one position past the last possible element in this set&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/isEmpty.adoc[`isEmpty`] 
| Return `true` if there are no elements in this set, and `false` otherwise&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/isMember.adoc[`isMember`] 
| Return `true` if the specified `value` is an element of this set, and `false` otherwise&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/length.adoc[`length`] 
| Return the number of elements in this set&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/operator_and_eq.adoc[`operator&amp;&equals;`] 
| Assign to this set the intersection of this set with the specified `rhs`&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/operator_minus_eq.adoc[`operator&hyphen;&equals;`] 
| Assign to this set the result of subtracting the specified `rhs`&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/operator_xor_eq.adoc[`operator&circ;&equals;`] 
| Assign to this set the exclusive&hyphen;or of this set with the specified `rhs`&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/operator_or_eq.adoc[`operator&verbar;&equals;`] 
| Assign to this set the union of this set with the specified `rhs`&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/print.adoc[`print`] 
| Format this object to the specified output `stream`&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/rbegin.adoc[`rbegin`] 
| Return a reverse iterator referencing the last valid element in this set&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/remove.adoc[`remove`] 
| Remove the specified `value` from this set&period; Return `true` if `value` was a member of this set, and `false` otherwise&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/removeAll.adoc[`removeAll`] 
| Remove all members of this set&period;
| xref:BloombergLP/bdlt/DayOfWeekSet/rend.adoc[`rend`] 
| Return a reverse iterator indicating one position before the first possible element in this set&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/DayOfWeekSet/maxSupportedBdexVersion-06d.adoc[`maxSupportedBdexVersion`] 
| `maxSupportedBdexVersion` overloads
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/bdlt/hashAppend-07f.adoc[BloombergLP::bdlt::hashAppend]`
| Pass `object` to `hashAlg` for modular hashing&period;
| `xref:BloombergLP/bdlt/operator_bitnot.adoc[BloombergLP::bdlt::operator&#126;]`
| Return a set containing the complement of the specified `set` (i&period;e&period;, those members _not_ contained in `set`)&period;
| `xref:BloombergLP/bdlt/operator_not_eq-090.adoc[BloombergLP::bdlt::operator!&equals;]`
| Return `true` if the specified `lhs` and `rhs` sets do not have the same value&period;
| `xref:BloombergLP/bdlt/operator_eq-021.adoc[BloombergLP::bdlt::operator&equals;&equals;]`
| Return `true` if the specified `lhs` and `rhs` sets have the same value&period;
|===

== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/operator_bitand.adoc[`operator&amp;`]
| Return a set containing the intersection of the specified `lhs` and `rhs` sets (i&period;e&period;, a set containing elements that are in both `lhs` and `rhs`)&period;
| xref:BloombergLP/bdlt/operator_minus-0b.adoc[`operator&hyphen;`]
| Return a set containing the subtraction of the specified `rhs` set from the specified `lhs` set (i&period;e&period;, a set containing elements that are in `lhs`, but not in `rhs`)&period;
| xref:BloombergLP/bdlt/operator_xor.adoc[`operator&circ;`]
| Return a set containing the exclusive&hyphen;or of the specified `lhs` and `rhs` sets&period;
| xref:BloombergLP/bdlt/operator_bitor.adoc[`operator&verbar;`]
| Return a set containing the union of the specified `lhs` and `rhs` sets (i&period;e&period;, a set containing elements that are in either `lhs` or `rhs` or both)&period;
|===


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