std::shared_ptr::operator bool
From cppreference.com
                    
                                        
                    < 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 Reason: no example  | 
[edit] See also
|    returns a pointer to the managed object   (public member function)  | |