dune-common 2.9.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Dune::Std::identity Struct Reference

A function object type whose operator() returns its argument unchanged. More...

#include <dune/common/std/functional.hh>

Public Member Functions

template<class T >
constexpr T && operator() (T &&t) const noexcept
 

Detailed Description

A function object type whose operator() returns its argument unchanged.

Note
Equivalent to: return std::forward(t);
Warning
When passing r-values, the result must be, at most, used for direct consumption in an outer function call

Member Function Documentation

◆ operator()()

template<class T >
constexpr T && Dune::Std::identity::operator() ( T &&  t) const
inlineconstexprnoexcept

The documentation for this struct was generated from the following file: