Files
Reboot-Launcher/dependencies/reboot/Project Reboot 3.0/IdentityFunctor.h
Alessandro Autiero b41e22adeb <feat: New project structure>
<feat: New release>
2023-09-02 15:34:15 +02: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;
}
};