|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
返回类型T的默认初始化值 更多...
函数 | |
| template<typename T> | |
| NEFORCE_ALWAYS_INLINE constexpr T | initialize () noexcept(is_nothrow_default_constructible< T >::value) |
| 返回类型T的默认初始化值 | |
返回类型T的默认初始化值
|
constexprnoexcept |
返回类型T的默认初始化值
| T | 要初始化的类型 |
C++11后,编译器在满足以下条件时执行命名返回值优化 NRVO:
在文件 type_traits.hpp 第 4323 行定义.
引用了 integral_constant< bool, Value >::value.
被这些函数引用 deque< T, Alloc, BufSize >::deque(), deque< T, Alloc, BufSize >::deque(), list< pair< Key, Value > >::list(), map< Key, T, Compare, Alloc >::operator[](), map< Key, T, Compare, Alloc >::operator[](), deque< T, Alloc, BufSize >::resize(), shift_left(), shift_right() , 以及 transform_reduce().