Namespaces
Variants

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

From cppreference.net
constexpr element_type & operator * ( ) ;
(1) (库基础技术规范 v2)
constexpr const element_type & operator * ( ) const ;
(2) (库基础技术规范 v2)
constexpr element_type * operator - > ( ) ;
(3) (库基础技术规范 v2)
constexpr const element_type * operator - > ( ) const ;
(4) (库基础技术规范 v2)

提供对指针类对象 * this 所包装对象的访问。

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

目录

参数

(无)

返回值

1,2) 被包装的类指针对象所指向的对象,即 * get ( )
3,4) 指向被包装类指针对象所指向对象的指针,即 get ( )

示例

参见

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