|
MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
创建可以容纳多种类型的对齐存储类型 更多...
#include <type_traits.hpp>
类 | |
| struct | type |
| 实际的对齐存储类型 更多... | |
静态 Public 成员函数 | |
| template<typename T> | |
| static constexpr bool | is_storable () noexcept |
| 检查指定类型是否可以安全存储在aligned_union中 | |
静态 Public 属性 | |
| static constexpr size_t | alignment_value = required_alignment |
| 存储的对齐要求 | |
| static constexpr size_t | size_value = storage_size |
| 存储的实际大小 | |
创建可以容纳多种类型的对齐存储类型
| Len | 最小存储大小 |
| Types | 可能的类型列表 |
创建一个可以容纳Types中任何类型的存储,具有严格的对齐要求。
在文件 type_traits.hpp 第 3510 行定义.
|
inlinestaticconstexprnoexcept |
检查指定类型是否可以安全存储在aligned_union中
| T | 要检查的类型 |
类型T必须满足以下条件:
在文件 type_traits.hpp 第 3547 行定义.
引用了 alignment_value , 以及 integral_constant< bool, Value >::value.