online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <memory> #include <atomic> struct foo { int m_a; int m_b; }; static std::shared_ptr<foo> g_bar; // static std::atomic<std::shared_ptr<foo>> g_bar; int main() { { std::shared_ptr<foo> local = std::atomic_load(&g_bar); std::cout << "local = " << local << "\n"; std::cout << "std::atomic_is_lock_free(&g_bar) = " << std::atomic_is_lock_free(&g_bar) << "\n"; } return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue