weak_ptr::owner_before

返回 true,则此 weak_ptr。(大于) 或提供的指针前顺序。

template<class Other>
    bool owner_before(const shared_ptr<Other>& ptr);
template<class Other>
    bool owner_before(const weak_ptr<Other>& ptr);

参数

  • ptr
    shared_ptrweak_ptrlvalue 引用。

属性值/返回值

返回 true,如果此 weak_ptr 排序在指针参数前,false,则没有。

备注

如果 *this 为 ordered before,则 ptr,模板成员函数返回 true。

要求

页眉: <内存>

命名空间: std

请参见

参考

weak_ptr 类

<memory>