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

A unary functor returning its own argument (any type) More...

#include <StatCollector.h>

Public Member Functions

template<typename T >
constexpr auto operator() (T &&v) const noexcept-> decltype(std::forward< T >(v))
 

Detailed Description

A unary functor returning its own argument (any type)

Definition at line 33 of file StatCollector.h.

Member Function Documentation

template<typename T >
constexpr auto lar::util::identity::operator() ( T &&  v) const -> decltype(std::forward<T>(v))
inlinenoexcept

Definition at line 35 of file StatCollector.h.

37  {
38  return std::forward<T>(v);
39  } // operator()

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