Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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
#8
#30.3
jkljklj
Template function declaration to avoid usage of template in T::template f<int>()
c++functor
narrow_cast
Generic EventProvider
rstring
5sdgts
Noexcept