FITFLOP
Home

weak-ptr (2 post)


posts by category not found!

C++ std::enable_if member template function overloading for template class

Understanding std enable if in C for Member Template Function Overloading in Template Classes In C template metaprogramming offers powerful capabilities that al

3 min read 21-10-2024 32
C++ std::enable_if member template function overloading for template class
C++ std::enable_if member template function overloading for template class

Is std::atomic<std::weak_ptr<>>::compare_exchange_* guaranteed to work if the underlying pointer is expired?

The Curious Case of std atomic std weak ptr compare exchange and Expired Pointers Lets delve into the intriguing behavior of std atomic std weak ptr compare exc

2 min read 05-10-2024 42
Is std::atomic<std::weak_ptr<>>::compare_exchange_* guaranteed to work if the underlying pointer is expired?
Is std::atomic<std::weak_ptr<>>::compare_exchange_* guaranteed to work if the underlying pointer is expired?