bsl::multiset::multiset

Constructors

Synopses

Declared in <bslstl_multiset.h>

Create an empty multiset.

multiset();
» more...

Create a multiset having the same value as original.

multiset(multiset const& original);
» more...

Create a multiset by moving from original.

multiset(BloombergLP::bslmf::MovableRef<multiset> original);
» more...

Create an empty multiset that uses the specified basicAllocator.

explicit
multiset(ALLOCATOR const& basicAllocator);
» more...

Create a multiset by moving from original with basicAllocator.

multiset(
    BloombergLP::bslmf::MovableRef<multiset> original,
    ALLOCATOR const& basicAllocator);
» more...

Same as the preceding overload, using the specified basicAllocator.

multiset(
    std::initializer_list<KEY> values,
    ALLOCATOR const& basicAllocator);
» more...

Create an empty multiset having the specified comparator.

explicit
multiset(
    COMPARATOR const& comparator,
    ALLOCATOR const& basicAllocator = ALLOCATOR());
» more...

Create a copy of original using basicAllocator.

multiset(
    multiset const& original,
    ALLOCATOR const& basicAllocator);
» more...

Create a multiset from the specified values initializer list.

multiset(
    std::initializer_list<KEY> values,
    COMPARATOR const& comparator = COMPARATOR(),
    ALLOCATOR const& basicAllocator = ALLOCATOR());
» more...

Same as the preceding overload, using the specified basicAllocator.

template<class INPUT_ITERATOR>
multiset(
    INPUT_ITERATOR first,
    INPUT_ITERATOR last,
    ALLOCATOR const& basicAllocator);
» more...

Create a multiset from the specified range, using the specified basicAllocator.

template<class RANGE>
multiset(
    std::from_range_t tag,
    RANGE&& range,
    ALLOCATOR const& basicAllocator);
» more...

Create a multiset from the range [first, last)].

template<class INPUT_ITERATOR>
multiset(
    INPUT_ITERATOR first,
    INPUT_ITERATOR last,
    COMPARATOR const& comparator = COMPARATOR(),
    ALLOCATOR const& basicAllocator = ALLOCATOR());
» more...

Create a multiset from the specified range.

template<class RANGE>
multiset(
    std::from_range_t tag,
    RANGE&& range,
    COMPARATOR const& comparator = COMPARATOR(),
    ALLOCATOR const& basicAllocator = ALLOCATOR());
» more...

Parameters

NameDescription
originalmultiset to copy
basicAllocatorallocator used to supply memory
valuesinitializer list of elements to insert
comparatorkey-ordering comparator for this multiset
firstbeginning of the input range
lastend of the input range
tagdisambiguation tag selecting the range constructor
rangeinput range of elements to insert