All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
util::identity Struct Reference

Substitute for C++20 std::identity. More...

Public Member Functions

template<typename T >
constexpr T && operator() (T &&v) const noexcept
 

Detailed Description

Substitute for C++20 std::identity.

Definition at line 47 of file PMTsimulationAlg.cxx.

Member Function Documentation

template<typename T >
constexpr T&& util::identity::operator() ( T &&  v) const
inlinenoexcept

Definition at line 49 of file PMTsimulationAlg.cxx.

50  { return std::forward<T>(v); }

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