Loading...
Searching...
No Matches
identityOp Struct Reference

A functor that returns its argument unchanged (cf. C++20 std::identity) Should never be specialized. More...

#include <stdFoam.H>

Public Types

using is_transparent = void

Public Member Functions

template<class T>
constexpr T && operator() (T &&val) const noexcept
template<class T>
constexpr T && operator[] (T &&val) const noexcept

Detailed Description

A functor that returns its argument unchanged (cf. C++20 std::identity) Should never be specialized.

Definition at line 107 of file stdFoam.H.

Member Typedef Documentation

◆ is_transparent

using is_transparent = void

Definition at line 109 of file stdFoam.H.

Member Function Documentation

◆ operator()()

template<class T>
T && operator() ( T && val) const
inlineconstexprnoexcept

Definition at line 112 of file stdFoam.H.

References Foam::T().

Here is the call graph for this function:

◆ operator[]()

template<class T>
T && operator[] ( T && val) const
inlineconstexprnoexcept

Definition at line 119 of file stdFoam.H.

References Foam::T().

Here is the call graph for this function:

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