std::experimental::observer_ptr<W>::operator bool

Checks whether *this has an associated watched object, i.e. whether get() != nullptr.

# Declarations

constexpr explicit operator bool() const noexcept;

(library fundamentals TS v2)

# Return value

true if *this has an associated watched object, false otherwise.

# Example

This section is incompleteReason: no example

# See also