mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
124 files changed.
This commit is contained in:
15
Project Reboot 3.0/IdentityFunctor.h
Normal file
15
Project Reboot 3.0/IdentityFunctor.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#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;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user