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 |
---|---|
|
a type satisfying the requirements of InputIterator. |
Parameters
Name | Description |
---|---|
|
A pointer to the |
|
The minimum number of elements for which capacity is guaranteed without a subsequent reallocation. |
|
An input iterator pointing to the first element to insert, or pointing to the end of the range. |
|
An input iterator pointing to the end of the range. |
|
The object to move. |
|
The initializer list to insert. |