EnTT 3.14.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
entt::identity Struct Reference

Identity function object (waiting for C++20). More...

#include <utility.hpp>

Public Types

using is_transparent = void
 Indicates that this is a transparent function object.
 

Public Member Functions

template<typename Type >
constexpr Type && operator() (Type &&value) const noexcept
 Returns its argument unchanged.
 

Detailed Description

Identity function object (waiting for C++20).

Definition at line 10 of file utility.hpp.

Member Typedef Documentation

◆ is_transparent

Indicates that this is a transparent function object.

Definition at line 12 of file utility.hpp.

Member Function Documentation

◆ operator()()

template<typename Type >
constexpr Type && entt::identity::operator() ( Type && value) const
inlineconstexprnoexcept

Returns its argument unchanged.

Template Parameters
TypeType of the argument.
Parameters
valueThe actual argument.
Returns
The submitted value as-is.

Definition at line 21 of file utility.hpp.


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