Constructors
Declared in <bslstl_set.h>
Create an empty set.
set();
» more...
Create a set having the same value as the specified original.
set(set const& original);
» more...
Create a set by moving the contents of the specified original.
set(BloombergLP::bslmf::MovableRef<set> original);
» more...
Create an empty set that uses the specified basicAllocator.
explicit
set(ALLOCATOR const& basicAllocator);
» more...
Create a set by moving original, using basicAllocator.
set(
BloombergLP::bslmf::MovableRef<set> original,
ALLOCATOR const& basicAllocator);
» more...
Create a set from values using the specified basicAllocator.
set(
std::initializer_list<KEY> values,
ALLOCATOR const& basicAllocator);
» more...
Create an empty set using the specified comparator and basicAllocator.
explicit
set(
COMPARATOR const& comparator,
ALLOCATOR const& basicAllocator = ALLOCATOR());
» more...
Create a set with the value of original, using basicAllocator.
set(
set const& original,
ALLOCATOR const& basicAllocator);
» more...
Create a set from the specified values initializer list.
set(
std::initializer_list<KEY> values,
COMPARATOR const& comparator = COMPARATOR(),
ALLOCATOR const& basicAllocator = ALLOCATOR());
» more...
Create a set from [first .. last)] using basicAllocator.
template<class INPUT_ITERATOR>
set(
INPUT_ITERATOR first,
INPUT_ITERATOR last,
ALLOCATOR const& basicAllocator);
» more...
Create a set from the specified range, using basicAllocator.
template<class RANGE>
set(
std::from_range_t tag,
RANGE&& range,
ALLOCATOR const& basicAllocator);
» more...
Create a set from the iterator range [first .. last)].
template<class INPUT_ITERATOR>
set(
INPUT_ITERATOR first,
INPUT_ITERATOR last,
COMPARATOR const& comparator = COMPARATOR(),
ALLOCATOR const& basicAllocator = ALLOCATOR());
» more...
Create a set from the values in the specified range.
template<class RANGE>
set(
std::from_range_t tag,
RANGE&& range,
COMPARATOR const& comparator = COMPARATOR(),
ALLOCATOR const& basicAllocator = ALLOCATOR());
» more...
| Name | Description |
|---|---|
| original | set whose value is copied |
| basicAllocator | allocator used to supply memory |
| values | initializer list of keys to insert |
| comparator | key-comparison functor |
| first | beginning of the range (inclusive) |
| last | end of the range (exclusive) |
| tag | disambiguation tag for the range constructor |
| range | range of values to insert |