does the standard mandate destruction of thread_local variable on computing time of the dying thread?
Afaik a (static) thread local variable is destroyed (immediately ?) when the associated thread terminates.
does the standard mandate destruction of thread_local variable on computing time of the dying thread?
Afaik a (static) thread local variable is destroyed (immediately ?) when the associated thread terminates.
does the standard mandate destruction of thread_local variable on computing time of the dying thread?
Afaik a (static) thread local variable is destroyed (immediately ?) when the associated thread terminates.
Need to call trivial destructor in standard compliant containers
I’m implementing my own version of standard-compliant containers. I read the following. It states that elements should be destroyed using the allocator destroy. Does it suggest a container must call the destructor of elements, even if it is trivial? My interpretation is we should first have the need to call the destructor. If so, we must use the allocator destroy. Otherwise, we don’t need to call allocator destroy either. Under this interpretation, we can skip calling allocator destroy for elements with a trivial destructor. This can lead to optimization in sequence containers.
std::chrono::gps_time (gps_clock) set with from_string
this is a follow up question to c++20 gps_clock initilize from string.
Best way to alias customization point objects
Lets imagine that we want to create alias for customization point object, like std::ranges::advance
.
Why does std::stable_sort not compile when std::sort does?
This is a follow-up question to Why std::stable_sort does not compile when std::sort does?
Why does std::stable_sort not compile when std::sort does?
This is a follow-up question to Why std::stable_sort does not compile when std::sort does?
Why does std::stable_sort not compile when std::sort does?
This is a follow-up question to Why std::stable_sort does not compile when std::sort does?
How can i give proper image or interface to something in c++ using vs code? [closed]
Closed 55 secs ago.