std::copyable_function 在标头<functional>定义 template<class...> classcopyable_function;// 未定义 (1)(C++26 起) template<classR,class...Args> classcopyable_function<R(Args...)>; template<classR,class...Args> classcopyable_function<R(Args...)noexcept>; ...
可平凡複製(TriviallyCopyable)對象可以通過手動複製其對象表示來進行複製,例如用std::memmove。所有與 C 語言兼容的數據類型(POD 類型)都可以平凡複製。 合格的複製構造函數 被用戶聲明或者同時被隱式聲明且可定義的複製構造函數是合格的。 (C++11 前)
concept copyable = std::copy_constructible<T> && std::movable<T> && std::assignable_from<T&, T&> && std::assignable_from<T&, const T&> && std::assignable_from<T&, const T>; (since C++20) The concept copyable<T> specifies that T is a movable object type that can also be co...
scalar types trivially copyable class types arrays of such types cv-qualified versions of these types The following types are collectively called standard-layout types: scalar types standard-layout class types arrays of such types cv-qualified versions of these types (since C++11)[...
Wenn die Objekte nichtTriviallyCopyable, ist das Verhalten undefiniert . Original: If the objects are notTriviallyCopyable, the behavior is undefined. The text has been machine-translated viaGoogle Translate. You can help to correct and verify the translation. Clickherefor instructions. ...
TriviallyCopyable (C++11) classe con banale copia, assegnazione e distruttore Original: class with trivial copy, assignment and destructor The text has been machine-translated viaGoogle Translate. You can help to correct and verify the translation. Clickherefor instructions. ...
TriviallyCopyable可平凡复制 (C++11) 这些类型的对象能够在复制底层字节后保持原值 (具名要求) TrivialType平凡类型 (C++11)(C++26 弃用) 这些类型的对象可以被平凡地构造和复制 (具名要求) StandardLayoutType标准布局类型 (C++11) 这些类型适用于与其他语言编写的代码交流 (具名要求) ImplicitLifetime...
std::is_trivially_copyable 是一元类型特征 (UnaryTypeTrait) 。 如果T 是可平凡复制 (TriviallyCopyable) 类型,那么提供的成员常量 value 等于true。对于其它任何类型,value 等于false。 如果std::remove_all_extents_t<T> 是不完整类型且并非(可有 cv 限定的)void ,那么行为未定义。 如果程序添加了 std...
std::copyable_function (FTM)* P2548R6 16 std::bind_front, std::bind_back, and std::not_fn to NTTP callables (FTM)* (FTM)* (FTM)* P2714R1 std::submdspan() (FTM)* P2630R4P3355R1 Freestanding language: Optional ::operator new P2013R5 N/A Freestanding std::char_traits, ...
Require std::span & std::basic_string_view to be TriviallyCopyable P2251R1 Yes Yes Yes Yes Clarifying the status of the “C headers” P2340R1 Yes Yes Yes Yes <expected> (FTM)* P0323R12P2549R1 12 16 19.33* 15.0.0* constexpr for <cmath> and <cstdlib> (FTM)* P0533R9 4.6 ...