标准布局类是满足标准布局类型(StandardLayoutType)的类。 若std::remove_all_extents_t<T>是不完整类型且非(可有 cv 限定的)void则行为未定义。 添加is_standard_layout或is_standard_layout_v(C++17 起)的特化的程序行为未定义。 模板形参 辅助变量模板 ...
template< class T > struct is_standard_layout; (C++11 起) 若T 为标准布局类型(即标量类型、标准布局类、或这种类型/类的数组,可以有 cv 限定),则提供等于 true 的成员常量 value 。对任何其他类型, value 为false。 标准布局类是满足标准布局类型 (StandardLayoutType) 的类。 若std::remove_all_...
std::is_standard_layoutis aUnaryTypeTrait. IfTis astandard-layout type, provides the member constantvalueequal totrue. For any other type,valueisfalse. Ifstd::remove_all_extents_t<T>is an incomplete type and not (possibly cv-qualified)void, the behavior is undefined. ...
也就是说,只有当 Order_with_vptr 的第一个成员类型是 ZuPrintable 时,才会违背 standard layout,但...
is_final (C++14) is_abstract (C++11) is_aggregate (C++17) is_implicit_lifetime (C++23) is_trivial (C++11) is_trivially_copyable (C++11) is_standard_layout (C++11) is_literal_type (C++11)(until C++20*) is_pod (C++11)(deprecated in C++20) is_signed (C++11) is_unsigned (C++11...
std::is_nothrow_swappable std::is_nothrow_swappable_with std::is_null_pointer std::is_object std::is_placeholder std::is_pod std::is_pointer std::is_polymorphic std::is_reference std::is_rvalue_reference std::is_same std::is_scalar std::is_signed std::is_standard_layout std::is_...
std::is_pointer std::is_polymorphic std::is_reference std::is_rvalue_reference std::is_same std::is_scalar std::is_signed std::is_standard_layout std::is_swappable std::is_swappable_with std::is_trivial std::is_trivially_assignable std::is_trivially_constructible std::is_trivially_copy...
std::is_nothrow_swappable std::is_nothrow_swappable_with std::is_null_pointer std::is_object std::is_placeholder std::is_pod std::is_pointer std::is_polymorphic std::is_reference std::is_rvalue_reference std::is_same std::is_scalar std::is_signed std::is_standard_layout std::is_...
std::is_null_pointer std::is_object std::is_placeholder std::is_pod std::is_pointer std::is_polymorphic std::is_reference std::is_rvalue_reference std::is_same std::is_scalar std::is_signed std::is_standard_layout std::is_swappable std::is_swappable_with std::is_trivial std::is...
文件rust/library/std/src/ascii.rs是Rust标准库中的一个实现了ASCII字符集(American Standard Code for Information Interchange)的模块。ASCII字符集是最常见的字符集,包含了基本的英文字母、数字、标点符号和控制字符,总共128个字符。 该模块定义了两个枚举类型AsciiChar和AsciiRepr,以及一个用于扩展ASCII功能的AsciiEx...