std::constructible_from
来自 cppreference.cn
< cpp | 概念 (concepts)
| 定义于头文件 <concepts> |
||
| template< class T, class... Args > concept constructible_from = |
(C++20 起) | |
constructible_from 概念指定类型 T 的变量可以用给定的一组参数类型 Args... 初始化。
[编辑] 参考
- C++23 标准 (ISO/IEC 14882:2024)
- 18.4.11 概念
constructible_from[concept.constructible]
- 18.4.11 概念
- C++20 标准 (ISO/IEC 14882:2020)
- 18.4.11 概念
constructible_from[concept.constructible]
- 18.4.11 概念
[编辑] 参阅
| (C++11)(C++11)(C++11) |
检查类型是否具有针对特定参数的构造函数 (类模板) |