Constructors

Synopses

Declared in <bslstl_multiset.h>

Create an empty multiset.

Create a multiset having the same value as original.

multiset(multiset const& original);

Create a multiset by moving from original.

Create an empty multiset that uses the specified basicAllocator.

explicit
multiset(ALLOCATOR const& basicAllocator);

Create a multiset by moving from original with basicAllocator.

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

Same as the preceding overload, using the specified basicAllocator.

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

Create an empty multiset having the specified comparator.

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

Create a copy of original using basicAllocator.

multiset(
    multiset const& original,
    ALLOCATOR const& basicAllocator);

Create a multiset from the specified values initializer list.

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

Same as the preceding overload, using the specified basicAllocator.

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

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);

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());

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());

Parameters

Name

Description

original

multiset to copy

basicAllocator

allocator used to supply memory

values

initializer list of elements to insert

comparator

key‐ordering comparator for this multiset

first

beginning of the input range

last

end of the input range

tag

disambiguation tag selecting the range constructor

range

input range of elements to insert

Created with MrDocs