std::in_place_t

std::in_place_t

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.

See also

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

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/utility/optional/in_place_t

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部