Binary functor that returns a constant. More...
#include <constant.h>
Public Types | |
typedef Base::first_argument_type | first_argument_type |
The first argument type. | |
typedef Base::second_argument_type | second_argument_type |
The second argument type. | |
typedef Base::result_type | result_type |
The result type. | |
Public Member Functions | |
Constructors etc. | |
BinaryConstant () | |
Default constructor. Default initialized value. | |
BinaryConstant (const result_type &x) | |
Construct from the constant value. | |
Manipulators. | |
void | set (const result_type &x) |
Set the return value. | |
Functor. | |
const result_type & | operator() (const first_argument_type &x, const second_argument_type &y) const |
Return the constant value. | |
Related Functions | |
(Note that these are not member functions.) | |
template<typename _FirstArgument , typename _SecondArgument , typename _Result > | |
BinaryConstant< _FirstArgument, _SecondArgument, _Result > | constructBinaryConstant (const _Result &x) |
Convenience function for constructing a BinaryConstant . | |
template<typename _FirstArgument , typename _SecondArgument , typename _Result > | |
BinaryConstant< _FirstArgument, _SecondArgument, _Result > | constructBinaryConstant () |
Convenience function for constructing a BinaryConstant . |
Binary functor that returns a constant.