12/1/2022 0 Comments Atomic heart jelly man![]() ![]() Any additional integral types needed by the typedefs in the header.The standard unsigned integer types: unsigned char, unsigned short, unsigned int, unsigned long, and unsigned long long.The standard signed integer types: signed char, short, int, long, and long long. ![]() The character types char, char8_t (since C++20), char16_t, char32_t, and wchar_t.When instantiated with one of the following integral types, std::atomic provides additional atomic operations appropriate to integral types such as fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor: See std::atomic and std::atomic for details. Besides the operations provided for all atomic types, these specializations additionally support atomic arithmetic operations appropriate to pointer types, such as fetch_add, fetch_sub.ģ-4) Partial specializations std :: atomic > and std :: atomic > are provided for std::shared_ptr and std::weak_ptr. These specializations have standard layout, trivial default constructors, (until C++20) and trivial destructors. The standard library provides partial specializations of the std::atomic template for the following types with additional properties that the primary template does not have:Ģ) Partial specializations std :: atomic for all pointer types. It is guaranteed to be a standard layout struct. Std :: atomic cnt // specialization for the user-defined type Struct Counters // user-defined trivially-copyable type ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |