forked from Alepha/Alepha
Lambaste.
This commit is contained in:
@ -15,11 +15,13 @@ namespace Alepha::Hydrogen::Utility
|
||||
{
|
||||
struct evaluate_t {};
|
||||
struct enroll_t {};
|
||||
struct lambaste_t {};
|
||||
|
||||
inline namespace exports
|
||||
{
|
||||
inline constexpr evaluate_t evaluate;
|
||||
inline constexpr enroll_t enroll;
|
||||
inline constexpr lambaste_t lambaste;
|
||||
}
|
||||
|
||||
template< typename Function >
|
||||
@ -39,6 +41,13 @@ namespace Alepha::Hydrogen::Utility
|
||||
|
||||
return registration;
|
||||
}
|
||||
|
||||
template< typename Value >
|
||||
auto
|
||||
operator <=( lambaste_t, Value value )
|
||||
{
|
||||
return [value]{ return value; };
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::evaluation
|
||||
|
Reference in New Issue
Block a user