Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
sharedptr emptiness
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> #include <memory> int main() { std::shared_ptr<int> p1; auto p2 = std::make_shared<int>(); if (!p1) std::cout << "p1 empty!\n"; if (!p2) std::cout << "p2 empty!\n"; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
VS struct name enumerate
MSVC_example_GetAllocLength
primitive type copy constructor
derived_tempalte
ㅇㅇ
const_pointer_cast
dharmesh
karma legacy "variant" with attr_cast
c++ eval - double numbers v1.0
Test
stackse - search stackoverflow differently
Please log in to post a comment.