std::experimental::propagate_const<T>::operator*, std::experimental::propagate_const<T>::operator->

constexpr element_type& operator*();
(1) (库基础 TS v2)
constexpr const element_type& operator*() const;
(2) (库基础 TS v2)
constexpr element_type* operator->();
(3) (库基础 TS v2)
constexpr const element_type* operator->() const;
(4) (库基础 TS v2)

提供到 *this 所包装的仿指针对象所指向对象的访问。

get() == nullptr 则这些函数的行为未定义。

参数

(无)

返回值

1-2) 被包装的仿指针对象所指向的对象,即 *get()

3-4) 指向被包装的仿指针对象所指向的对象的指针,即 get()

参数

参阅

返回指向被包装指针所指向对象的指针
(公开成员函数)