weak_ptr::owner_before
Returns true if this weak_ptr is ordered before (or less than) the provided pointer.
template<class Other>
bool owner_before(const shared_ptr<Other>& ptr);
template<class Other>
bool owner_before(const weak_ptr<Other>& ptr);
매개 변수
- ptr
An lvalue reference to either a shared_ptr or a weak_ptr.
속성 값/반환 값
Returns true if this weak_ptr sorts before the pointer parameter, false if not.
설명
The template member function returns true if *this is ordered before ptr.
요구 사항
헤더 <memory>
네임스페이스: std