Belle II Software development
|
Generic functor to wrap a constant as a function. More...
#include <Functional.h>
Public Member Functions | |
operator FunctorTag () | |
Marker function for the isFunctor test. | |
Constant (const T &t) | |
Constructor from the constant value. | |
template<class S > | |
constexpr const T & | operator() (const S &) const |
Operator returning the constant. | |
Private Attributes | |
T | m_t {} |
Memory for the constant to be returned. | |
Generic functor to wrap a constant as a function.
Definition at line 39 of file Functional.h.
|
inlineexplicit |
Constructor from the constant value.
Definition at line 46 of file Functional.h.
|
inlineconstexpr |
Operator returning the constant.
Definition at line 53 of file Functional.h.
|
private |
Memory for the constant to be returned.
Definition at line 60 of file Functional.h.