CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::UserPredicate< Callable > Struct Template Reference

#include <CeresEngine/Foundation/Predicate.hpp>

Inheritance diagram for CeresEngine::UserPredicate< Callable >:
CeresEngine::Predicate< UserPredicate< Callable > >

Public Member Functions

constexpr UserPredicate (Callable &&callable) noexcept
 Creates a new UserPredicate
 
template<typename... Input>
constexpr bool operator() (Input &&... input) const noexcept(noexcept(callable(std::forward< Input >(input)...)))
 Executes the predicate.
 

Public Attributes

Callable callable
 The callable to be invoked when evaluating the predicate.
 

Constructor & Destructor Documentation

◆ UserPredicate()

template<typename Callable >
constexpr CeresEngine::UserPredicate< Callable >::UserPredicate ( Callable &&  callable)
inlineexplicitconstexprnoexcept

Creates a new UserPredicate

Parameters
callableThe callable to be invoked when evaluating the predicate.

Member Function Documentation

◆ operator()()

template<typename Callable >
template<typename... Input>
constexpr bool CeresEngine::UserPredicate< Callable >::operator() ( Input &&...  input) const
inlineconstexprnoexcept

Executes the predicate.

Template Parameters
Inputthe predicate input types
Parameters
inputThe predicate inputs
Returns
The predicate evaluation result

Member Data Documentation

◆ callable

The callable to be invoked when evaluating the predicate.


The documentation for this struct was generated from the following file: