BloombergLP::bdlt::DayOfWeekSet

This class implements an efficient value-semantic, ordered set of DayOfWeek values.

Synopsis

Declared in <bdlt_dayofweekset.h>

class DayOfWeekSet;

Description

This set requires a fixed capacity, and all operations operate in constant time, and provide the no-throw guarantee.

Type Aliases

NameDescription
const_iterator Standard nested alias for set container's constant iterator.
const_reverse_iterator Standard nested alias for set container's constant reverse iterator.
iterator Standard nested alias for set container's iterator.
reverse_iterator Standard nested alias for set container's reverse iterator.

Member Functions

NameDescription
DayOfWeekSet [constructor]Constructors
~DayOfWeekSet [destructor]Destroy this object.
operator= Assign to this set the value of the specified rhs set, and return a reference providing modifiable access to this set.
add Add the specified value to this set.
areMembers Return true if this set contains all elements of the specified set, and false otherwise.
bdexStreamIn Assign to this object the value read from the specified input stream.
bdexStreamOut Write this object to the specified output stream using BDEX.
begin Return an iterator referencing the first valid element in this set.
end Return an iterator indicating one position past the last possible element in this set.
isEmpty Return true if there are no elements in this set, and false otherwise.
isMember Return true if the specified value is an element of this set, and false otherwise.
length Return the number of elements in this set.
operator&= Assign to this set the intersection of this set with the specified rhs.
operator-= Assign to this set the result of subtracting the specified rhs.
operator^= Assign to this set the exclusive-or of this set with the specified rhs.
operator|= Assign to this set the union of this set with the specified rhs.
print Format this object to the specified output stream.
rbegin Return a reverse iterator referencing the last valid element in this set.
remove Remove the specified value from this set. Return true if value was a member of this set, and false otherwise.
removeAll Remove all members of this set.
rend Return a reverse iterator indicating one position before the first possible element in this set.

Static Member Functions

NameDescription
maxSupportedBdexVersion maxSupportedBdexVersion overloads

Friends

NameDescription
BloombergLP::bdlt::hashAppendPass object to hashAlg for modular hashing.
BloombergLP::bdlt::operator~Return a set containing the complement of the specified set (i.e., those members not contained in set).
BloombergLP::bdlt::operator!=Return true if the specified lhs and rhs sets do not have the same value.
BloombergLP::bdlt::operator==Return true if the specified lhs and rhs sets have the same value.

Non-Member Functions

NameDescription
operator&Return a set containing the intersection of the specified lhs and rhs sets (i.e., a set containing elements that are in both lhs and rhs).
operator-Return a set containing the subtraction of the specified rhs set from the specified lhs set (i.e., a set containing elements that are in lhs, but not in rhs).
operator^Return a set containing the exclusive-or of the specified lhs and rhs sets.
operator|Return a set containing the union of the specified lhs and rhs sets (i.e., a set containing elements that are in either lhs or rhs or both).