std::experimental::propagate_const<T>:: get
From cppreference.net
<
cpp
|
experimental
|
propagate const
C++
Experimental
| Technical Specification | ||||
| Filesystem library (filesystem TS) | ||||
| Library fundamentals (library fundamentals TS) | ||||
| Library fundamentals 2 (library fundamentals TS v2) | ||||
| Library fundamentals 3 (library fundamentals TS v3) | ||||
| Extensions for parallelism (parallelism TS) | ||||
| Extensions for parallelism 2 (parallelism TS v2) | ||||
| Extensions for concurrency (concurrency TS) | ||||
| Extensions for concurrency 2 (concurrency TS v2) | ||||
| Concepts (concepts TS) | ||||
| Ranges (ranges TS) | ||||
| Reflection (reflection TS) | ||||
| Mathematical special functions (special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
std::experimental::propagate_const
| Member functions | ||||
| Observers | ||||
|
propagate_const::get
|
||||
| Non-member functions | ||||
| Helper classes | ||||
|
constexpr
element_type
*
get
(
)
;
|
(库基础技术规范 v2) | |
|
constexpr
const
element_type
*
get
(
)
const
;
|
(库基础技术规范 v2) | |
返回指向被包装的类指针对象
t_
所指向对象的指针。
参数
(无)
返回值
如果
T
是指向对象的指针类型,则
t_
。否则,
t_.
get
(
)
。
示例
|
本节内容不完整
原因:缺少示例 |