Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Atomic trivial default constructor
#include <iostream> #include <atomic> struct S { S() noexcept { std::cout << "s\n"; }}; int main() { std::atomic<S> s; //std::atomic_init(&s, S()); }
run
|
edit
|
history
|
help
0
Result of not joining thread in main()
the usual name hiding rules do apply with using directives
Recursive Function Calling Example with Stack Addresses
Erase a std::unordered_map::local_iterator by key
U2
A
12/2
CS1428 SI Tuesday
Throttle Example using a circular queue (Push all but 2 less than maxSize; then pop all but 2 of current size)
Assignment Operator Example