##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::in_place_t

From cppreference.com
< cpp‎ | utility‎ | optional

Defined in header `<optional>` |  |
struct in_place_t {}; |  | (since C++17)

`std::in_place_t` is an empty class type 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

in_place in_place_type in_place_index in_place_t in_place_type_t in_place_index_t (C++17) | in-place construction tag (class template) [edit]
optional (since C++17) | a wrapper that may or may not hold an object (class template) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/utility/optional/in_place_t&oldid=89656"