Files
Project-Reboot-3.0/Project Reboot 3.0/IdentityFunctor.h
2023-04-15 19:53:58 -04:00

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;
}
};