bsl::set::set

Constructors

Synopses

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...

Parameters

NameDescription
originalset whose value is copied
basicAllocatorallocator used to supply memory
valuesinitializer list of keys to insert
comparatorkey-comparison functor
firstbeginning of the range (inclusive)
lastend of the range (exclusive)
tagdisambiguation tag for the range constructor
rangerange of values to insert