conversion function
std::shared_ptr::operator bool
- Header
<memory>- Scope
std::shared_ptr- cppreference
- std::shared_ptr::operator bool
Conversion to bool
Synopsis
explicit constexpr operator bool() const noexcept;conversion function
<memory>std::shared_ptrConversion to bool
explicit constexpr operator bool() const noexcept;