EnTT: entt::identity Struct Reference

EnTT 3.16.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

using entt::identity::is_transparent = void

Indicates that this is a transparent function object.

Definition at line 12 of file utility.hpp.

## Member Function Documentation

## ◆ operator()()

template<typename Type>

Type && entt::identity::operator() | ( | Type && | value | ) | const
| inlinenodiscardconstexprnoexcept

Returns its argument unchanged.

Template Parameters

  Type | Type of the argument.

Parameters

  value | The 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:

- src/entt/core/utility.hpp