Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::experimental::in_place

std::experimental::in_place is a constant of type std::experimental::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…

NotebookLM
Defined in header <experimental/optional>
constexpr in_place_t in_place{};
(library fundamentals TS)

std::experimental::in_place is a constant of type std::experimental::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.

See also

in-place construction tag
(tag)
(C++17)
a wrapper that may or may not hold an object
(class template)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.