Namespaces
Variants

std::experimental::observer_ptr<W>:: release

From cppreference.net
constexpr element_type * release ( ) noexcept ;
(라이브러리 펀더멘털 TS v2)

감시 중인 객체가 있다면 감시를 중지합니다. get() 호출 후 nullptr 을 반환합니다.

목차

매개변수

(없음)

반환값

이전에 감시 중이던 객체에 대한 포인터, 또는 nullptr 감시 중인 객체가 없었을 경우, 즉 호출 전 get() 이 반환했을 값.

예제

참고 항목

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