Namespaces
Variants

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

From cppreference.net
constexpr explicit operator bool ( ) const noexcept ;
(라이브러리 펀더멘털 TS v2)

* this 가 연결된 감시 객체를 가지고 있는지 여부를 확인합니다. 즉, get ( ) ! = nullptr 인지 여부를 확인합니다.

목차

매개변수

(없음)

반환값

true 만약 * this 가 연결된 감시 객체를 가지고 있으면, false 그렇지 않으면.

예제

참고 항목

감시 중인 객체에 대한 포인터를 반환합니다
(public member function)