From Jason Turner

[func.identity]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpz3bjm5hj/{from.md → to.md} +16 -0
tmp/tmpz3bjm5hj/{from.md → to.md} RENAMED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Class `identity` <a id="func.identity">[[func.identity]]</a>
2
+
3
+ ``` cpp
4
+ struct identity {
5
+ template<class T>
6
+ constexpr T&& operator()(T&& t) const noexcept;
7
+
8
+ using is_transparent = unspecified;
9
+ };
10
+
11
+ template<class T>
12
+ constexpr T&& operator()(T&& t) const noexcept;
13
+ ```
14
+
15
+ *Effects:* Equivalent to: `return std::forward<T>(t);`
16
+