std::experimental::ranges:: DefaultConstructible
From cppreference.net
<
cpp
|
experimental
|
ranges
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 |
Concepts library
| Core language concepts | ||||||||||||||||||
| Object concepts | ||||||||||||||||||
|
||||||||||||||||||
| Comparison concepts | ||||||||||||||||||
| Callable concepts | ||||||||||||||||||
| URNG concept | ||||||||||||||||||
|
template
<
class
T
>
concept bool DefaultConstructible = Constructible < T > ; |
(ranges TS) | |
DefaultConstructible
概念为常见情况提供了一种简写方式,即判断某个类型是否可以通过无参方式进行构造。
参见
|
指定该类型的变量可以从一组实参类型构造或绑定
(概念) |
|
|
(C++11)
(C++11)
(C++11)
|
检查类型是否拥有默认构造函数
(类模板) |