mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
16 lines
251 B
C++
16 lines
251 B
C++
#pragma once
|
|
|
|
#include "inc.h"
|
|
|
|
/**
|
|
* A functor which returns whatever is passed to it. Mainly used for generic composition.
|
|
*/
|
|
struct FIdentityFunctor
|
|
{
|
|
template <typename T>
|
|
FORCEINLINE T&& operator()(T&& Val) const
|
|
{
|
|
return (T&&)Val;
|
|
}
|
|
};
|