Unary functor that returns a constant. More...
#include <constant.h>
Public Types | |
| typedef Base::argument_type | argument_type |
| The argument type. | |
| typedef Base::result_type | result_type |
| The result type. | |
Public Member Functions | |
Constructors etc. | |
| UnaryConstant () | |
| Default constructor. Default initialized value. | |
| UnaryConstant (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 argument_type &x) const |
| Return the constant value. | |
Related Functions | |
(Note that these are not member functions.) | |
| template<typename _Argument , typename _Result > | |
| UnaryConstant< _Argument, _Result > | constructUnaryConstant (const _Result &x) |
Convenience function for constructing a UnaryConstant. | |
| template<typename _Argument , typename _Result > | |
| UnaryConstant< _Argument, _Result > | constructUnaryConstant () |
Convenience function for constructing a UnaryConstant. | |
Unary functor that returns a constant.
1.6.3