object::object

Default constructor.

Synopsis

object() noexcept; (1)

explicit
object(
    storage_ptr sp) noexcept; (2)

object(
    std::size_t min_capacity,
    storage_ptr sp = {}); (3)

template<
    class InputIt>
object(
    InputIt first,
    InputIt last,
    std::size_t min_capacity = 0,
    storage_ptr sp = {}); (4)

object(
    object&& other) noexcept; (5)

object(
    object&& other,
    storage_ptr sp); (6)

object(
    pilfered< object > other) noexcept; (7)

object(
    object const& other); (8)

object(
    object const& other,
    storage_ptr sp); (9)

object(
    std::initializer_list< std::pair< string_view, value_ref > > init,
    storage_ptr sp = {}); (10)

object(
    std::initializer_list< std::pair< string_view, value_ref > > init,
    std::size_t min_capacity,
    storage_ptr sp = {}); (11)

Description

The constructed object is empty with zero capacity, using the default memory resource.

Complexity

Constant.

Exception Safety

No-throw guarantee.

Template Parameters

Type Description

InputIt

a type satisfying the requirements of InputIterator.

Parameters

Name Description

sp

A pointer to the boost::container::pmr::memory_resource to use. The container will acquire shared ownership of the memory resource.

min_capacity

The minimum number of elements for which capacity is guaranteed without a subsequent reallocation.

first

An input iterator pointing to the first element to insert, or pointing to the end of the range.

last

An input iterator pointing to the end of the range.

other

The object to move.

init

The initializer list to insert.