std::experimental:: in_place_t
From cppreference.net
<
cpp
|
experimental
|
optional
C++
Experimental
| Technical Specification | ||||
| Filesystem library (filesystem TS) | ||||
| Library fundamentals (library fundamentals TS) | ||||
| Library fundamentals 2 (library fundamentals TS v2) | ||||
| Library fundamentals 3 (library fundamentals TS v3) | ||||
| Extensions for parallelism (parallelism TS) | ||||
| Extensions for parallelism 2 (parallelism TS v2) | ||||
| Extensions for concurrency (concurrency TS) | ||||
| Extensions for concurrency 2 (concurrency TS v2) | ||||
| Concepts (concepts TS) | ||||
| Ranges (ranges TS) | ||||
| Reflection (reflection TS) | ||||
| Mathematical special functions (special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
std::experimental::optional
| Member functions | ||||
| Observers | ||||
| Modifiers | ||||
| Non-member functions | ||||
| Helper classes | ||||
|
in_place_t
|
||||
| Helper objects | ||||
|
定义于头文件
<experimental/optional>
|
||
|
struct
in_place_t
{
}
;
|
(库基础技术规范) | |
std::experimental::in_place_t
是一个空类类型,用于消除构造函数和成员函数重载的歧义,这些函数接受参数(可能为参数包)以进行某些值的原位构造。
参见
|
原位构造标签
(标签) |
|
|
(C++17)
|
可能持有或未持有对象的包装器
(类模板) |