std::experimental::ranges::identity
來自 cppreference.com
< cpp | experimental | ranges
定義於標頭檔案 <experimental/ranges/functional> |
||
struct identity; |
(ranges TS) | |
ranges::identity
是一個函式物件型別,其 operator() 返回其引數不變。它被用作所有 Ranges 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).
[編輯] 示例
本節不完整 原因:無示例 |