A backport of the C++20 std::identity function object. It returns its input unchanged.
More...
|
| using | is_transparent = void |
| | Indicates that this function object can be used with transparent comparisons.
|
| |
|
| template<typename T> |
| constexpr auto | operator() (T &&value) const noexcept -> T && |
| | Returns the input value unchanged as if forwarded via std::forward.
|
| |
A backport of the C++20 std::identity function object. It returns its input unchanged.
◆ is_transparent
Indicates that this function object can be used with transparent comparisons.
◆ operator()()
template<typename T>
| auto arene::base::identity::operator() |
( |
T && | value | ) |
const -> T&& |
|
inlineconstexprnoexcept |
Returns the input value unchanged as if forwarded via std::forward.
- Template Parameters
-
- Parameters
-
- Returns
- T&& The forwarded input value, unchanged.
The documentation for this class was generated from the following file: