Wayverb
Main Page
Related Pages
Classes
Files
File List
identity.h
1
#pragma once
2
3
namespace
util
{
4
5
template
<
typename
T>
6
constexpr
auto
identity(T&& t) -> decltype(std::forward<T>(t)) {
7
return
std::forward<T>(t);
8
}
9
10
struct
identity_functor
final {
11
template
<
typename
T>
12
constexpr
auto
operator()(T&& t) -> decltype(std::forward<T>(t)) {
13
return
std::forward<T>(t);
14
}
15
};
16
17
}
// namespace util
util
Definition:
allocator.h:6
util::identity_functor
Definition:
identity.h:10
src
utilities
include
utilities
identity.h
Generated by
1.8.11