value::value

Default constructor.

Synopsis

value() noexcept; (1)

explicit
value(
    storage_ptr sp) noexcept; (2)

value(
    pilfered< value > other) noexcept; (3)

value(
    value const& other); (4)

value(
    value const& other,
    storage_ptr sp); (5)

value(
    value&& other) noexcept; (6)

value(
    value&& other,
    storage_ptr sp); (7)

value(
    std::nullptr_t,
    storage_ptr sp = {}) noexcept; (8)

value(
    bool b,
    storage_ptr sp = {}) noexcept; (9)

value(
    signed char i,
    storage_ptr sp = {}) noexcept; (10)

value(
    short i,
    storage_ptr sp = {}) noexcept; (11)

value(
    int i,
    storage_ptr sp = {}) noexcept; (12)

value(
    long i,
    storage_ptr sp = {}) noexcept; (13)

value(
    long long i,
    storage_ptr sp = {}) noexcept; (14)

value(
    unsigned char u,
    storage_ptr sp = {}) noexcept; (15)

value(
    unsigned short u,
    storage_ptr sp = {}) noexcept; (16)

value(
    unsigned int u,
    storage_ptr sp = {}) noexcept; (17)

value(
    unsigned long u,
    storage_ptr sp = {}) noexcept; (18)

value(
    unsigned long long u,
    storage_ptr sp = {}) noexcept; (19)

value(
    double d,
    storage_ptr sp = {}) noexcept; (20)

value(
    string_view s,
    storage_ptr sp = {}); (21)

value(
    char const* s,
    storage_ptr sp = {}); (22)

value(
    string other) noexcept; (23)

value(
    string const& other,
    storage_ptr sp); (24)

value(
    string&& other,
    storage_ptr sp); (25)

value(
    string_kind_t,
    storage_ptr sp = {}) noexcept; (26)

value(
    array other) noexcept; (27)

value(
    array const& other,
    storage_ptr sp); (28)

value(
    array&& other,
    storage_ptr sp); (29)

value(
    array_kind_t,
    storage_ptr sp = {}) noexcept; (30)

value(
    object other) noexcept; (31)

value(
    object const& other,
    storage_ptr sp); (32)

value(
    object&& other,
    storage_ptr sp); (33)

value(
    object_kind_t,
    storage_ptr sp = {}) noexcept; (34)

value(
    std::initializer_list< value_ref > init,
    storage_ptr sp = {}); (35)

Description

The constructed value is null, using the default memory resource.

Complexity

Constant.

Exception Safety

No-throw guarantee.

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.

other

The value to pilfer. After pilfer construction, other is not in a usable state and may only be destroyed.

b

The initial value.

i

The initial value.

u

The initial value.

d

The initial value.

s

The string view to construct with.

init

The initializer list to construct from.