std::experimental::ranges::identity
出自cppreference.com
< cpp | experimental | ranges
struct identity; |
(範圍 TS) | |
ranges::identity
是函數對象類型,它的 operator() 返回不更改的參數。所有範圍 TS 算法以之為默認投影。
目錄 |
[編輯] 嵌套類型
嵌套類型 | 定義 |
is_transparent
|
未指定 |
[編輯] 成員函數
operator() |
返回未更改的實參 (公開成員函數) |
std::experimental::ranges::identity::operator()
template< class T > constexpr T&& operator()( T&& t ) const noexcept; |
||
返回 std::forward<T>(t)。
參數
t | - | 要返回的實參 |
返回值
std::forward<T>(t)。
[編輯] 示例
本節未完成 原因:暫無示例 |