Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
#include
#include
using namespace std; int main() { shared_ptr
owner = make_shared
(5); weak_ptr
watcher = owner; shared_ptr
temp = watcher.lock(); if (temp) { cout << *temp; } return 0; }
5