![]() |
![]()
| ![]() |
![]()
NAMEstd::unique_ptr::operatorbool - std::unique_ptr::operatorbool Synopsis explicit operator bool() const noexcept; (since C++11)
Parameters(none) Return valuetrue if *this owns an object, false otherwise. Example// Run this code
Output: before reset, ptr is: 42
See also get returns a pointer to the managed object
|