Namespaces
Variants
Views
Actions

std::in_place

From cppreference.com
< cpp‎ | utility
Revision as of 07:44, 16 August 2013 by Nate (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Defined in header <optional>
constexpr in_place_t in_place{};
(since C++14)

std::in_place is a constant of type std::in_place_t that is used to disambiguate the overloads of constructors and member functions of that take arguments (possibly a parameter pack) for in-place construction of some value.

[edit] See also

disambiguation tag type for in-place construction of optional types
(class) [edit]
(C++14)
a wrapper that may or may not hold an object
(class template) [edit]