std::atomic_uint8_t std::atomic<std::uint8_t> std::atomic_int16_t std::atomic<std::int16_t> std::atomic_uint16_t std::atomic<std::uint16_t> std::atomic_int32_t std::atomic<std::int32_t> std::atomic_uint32_t std::atomic<std::uint32_t> std::atomic_int64_t ...
std::atomic<char32_t> (typedef) atomic_wchar_t (C++11) std::atomic<wchar_t> (typedef) atomic_int8_t (C++11)(可选) std::atomic<std::int8_t> (typedef) atomic_uint8_t (C++11)(可选) std::atomic<std::uint8_t> (typedef) atomic_int16_t (C++11)(可选) st...
std::atomic<T>::wait std::atomic<T>::notify_one std::atomic<T>::notify_all std::atomic<T>::fetch_add std::atomic<T>::fetch_sub std::atomic<T>::fetch_and std::atomic<T>::fetch_or std::atomic<T>::fetch_xor std::atomic<T>::operator++,++(int),--,--(int) std::atomic<...
std::atomic_char16_t std::atomic<char16_t> std::atomic_char32_t std::atomic<char32_t> std::atomic_wchar_t std::atomic<wchar_t> std::atomic_int8_t std::atomic<std::int8_t> std::atomic_uint8_t std::atomic<std::uint8_t> std::atomic_int16_t std::atomic<std::in...
func swap(Int8) func swap(Int8, MemoryOrder) class AtomicOptionReference init() init(Option<T>) func compareAndSwap(Option<T>, Option<T>) func compareAndSwap(Option<T>, Option<T>, MemoryOrder, MemoryOrder) func load() func load(MemoryOrder) func store(Option<T>) func store(Option<T...
Atomic、Monitor 和 Timer 的使用 std.time 包 接口 类 枚举 结构体 异常类 示例教程 DateTime 比较 DateTime 与 String 类型的转换 获取日期时间信息 同一时间在不同时区的本地时间 利用MonoTime 作计时 std.unicode 包 接口 std.unittest 包 函数 接口 类 枚举 结构体 异常类 示例教程 ...
atomic_int8_t (C++11 起)atomic_int16_t (C++11 起)atomic_int32_t (C++11 起)atomic_int64_t (C++11 起)atomic_int_fast8_t (C++11 起)atomic_int_fast16_t (C++11 起)atomic_int_fast32_t (C++11 起)atomic_int_fast64_t (C++11 起)atomic_int_least8_t (C++11 起)atomic_int_least...
注意:std::atomic_intN_t、std::atomic_uintN_t、std::atomic_intptr_t及atomic_uintptr_t分别若且唯若定义了std::intN_t、std::uintN_t、std::intptr_t及std::uintptr_t才有定义。 提供额外的特殊用途类型别名: (C++20 起) 成员类型
typedefint32_ts32; typedefint64_ts64; typedefuint8_tu8; typedefuint16_tu16; typedefuint32_tu32; typedefuint64_tu64; template<typenameT,typename... Args> inlinevoidplace(T* loc, Args&&... args){ ::new(loc) T(args...); }
return __atomic_load_n(&_M_use_count, __ATOMIC_RELAXED); } }; // 单元测试 util::memory::strong_rc_ptr<int> pi; // boost::shared_ptr 行为(strong_rc_ptr采用此行为) CASE_EXPECT_TRUE(pi.use_count() == 0); // std::shared_ptr 行为 CASE_EXPECT_TRUE(pi.use_count() == 1);...