std::is_copy_assignable, std::is_trivially_copy_assignable, std::is_nothrow_copy_assignable std::is_move_assignable, std::is_trivially_move_assignable, std::is_nothrow_move_assignable std::is_destructible, std::is_trivially_destructible, std::is_nothrow_destructible std::has_virtual_destructor...
is_move_assignable<_Tp>>::value>::type#elsevoid#endifswap(_Tp& __a, _Tp& __b) _GLIBCXX_NOEXCEPT_IF(__and_<is_nothrow_move_constructible<_Tp>, is_nothrow_move_assignable<_Tp>>::value) {#if__cplusplus < 201103L///...#endif_Tp __tmp = _GLIBCXX_MOVE(__a); __a = _GLIBC...
[...] 不得参与重载决策,除非 is_move_constructible_v<T>为真并且is_move_assignable_v<T>为真。可选值的分配lhs = rhs;可以执行以下任一操作:摧毁lhs(如果bool(lhs) && !bool(rhs)) 从lhs( rhsif !bool(lhs) && bool(rhs))或 分配rhs给lhs(如果bool(lhs) && bool(rhs))。因此...
is_move_assignableis_trivially_move_assignableis_nothrow_move_assignable (C++11)(C++11)(C++11) checks if a type has a move assignment operator (class template) assignable_from (C++20) specifies that a type is assignable from another type ...
std::is_member_function_pointer std::is_member_object_pointer std::is_member_pointer std::is_move_assignable std::is_move_constructible std::is_nothrow_assignable std::is_nothrow_constructible std::is_nothrow_copy_assignable std::is_nothrow_copy_constructible std::is_nothrow_default_constructible...
std::is_trivially_constructible std::is_trivially_copyable std::is_trivially_copy_assignable std::is_trivially_copy_constructible std::is_trivially_default_constructible std::is_trivially_destructible std::is_trivially_move_assignable std::is_trivially_move_constructible std::is_union std::is_unsigne...
std::is_trivially_copy_assignable std::is_trivially_copy_constructible std::is_trivially_default_constructible std::is_trivially_destructible std::is_trivially_move_assignable std::is_trivially_move_constructible std::is_union std::is_unsigned std::is_void std::is_volatile std::jmp_buf std::...
std::is_move_assignable<T>::value std::atomic<bool> 使用初等模板。它保证是标准布局结构体。 部分特化 标准库为下列类型提供 std::atomic 模板的特化,它们拥有初等模板所不拥有的额外属性: 2) 对所有指针类型的部分特化 std::atomic<U*> 。这些特化拥有标准布局、平凡默认构造函数 (C++20 前)和平凡...
std::is_member_function_pointer std::is_member_object_pointer std::is_member_pointer std::is_move_assignable std::is_move_constructible std::is_nothrow_assignable std::is_nothrow_constructible std::is_nothrow_copy_assignable std::is_nothrow_copy_constructible std::is_nothrow_default_constructible...
is_move_constructibleis_trivially_move_constructibleis_nothrow_move_constructible (C++11)(C++11)(C++11) is_assignableis_trivially_assignableis_nothrow_assignable (C++11)(C++11)(C++11) is_copy_assignableis_trivially_copy_assignableis_nothrow_copy_assignable (C++11)(C++11)(C++11) is_move_assignable...