std::shared_ptr::operator bool
From Cppreference
< cpp | memory | shared ptr
operator bool() const;
|
||
Checks if *this manages an object, i.e. whether get() != 0.
Contents |
[edit] Parameters
(none)
[edit] Return value
true if *this manages an object, false otherwise.
[edit] Example
This section is incomplete |
[edit] See also
|
returns a pointer to the managed object (public member function) |