std::experimental::propagate_const<T>::operator*, std::experimental::propagate_const<T>::operator->
来自 cppreference.cn
< cpp | experimental | propagate const
constexpr element_type& operator*(); |
(1) | (library fundamentals TS v2) |
constexpr const element_type& operator*() const; |
(2) | (library fundamentals TS v2) |
constexpr element_type* operator->(); |
(3) | (library fundamentals TS v2) |
constexpr const element_type* operator->() const; |
(4) | (library fundamentals TS v2) |
提供访问由指针式对象 *this 封装所指向的对象。
如果 get() == nullptr,则这些函数的行为是未定义的。
目录 |
[编辑] 参数
(无)
[编辑] 返回值
1,2) 由封装的指针式对象指向的对象,即 *get()。
3,4) 指向由封装的指针式对象指向的对象的指针,即 get()。
[编辑] 示例
本节尚不完整 原因:没有示例 |
[编辑] 参见
返回指向由封装指针指向的对象的指针 (公共成员函数) |