mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 19:22:22 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
15
dependencies/reboot/Project Reboot 3.0/IdentityFunctor.h
vendored
Normal file
15
dependencies/reboot/Project Reboot 3.0/IdentityFunctor.h
vendored
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