Generator that returns a constant. More...
#include <constant.h>
Public Types | |
typedef _Result | result_type |
The result type. | |
Public Member Functions | |
Constructors etc. | |
GeneratorConstant () | |
Default constructor. Uninitialized value. | |
GeneratorConstant (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 |
Return the constant value. | |
Related Functions | |
(Note that these are not member functions.) | |
template<typename _Result > | |
GeneratorConstant< _Result > | constructGeneratorConstant (const _Result &x) |
Convenience function for constructing a GeneratorConstant . | |
template<typename _Result > | |
GeneratorConstant< _Result > | constructGeneratorConstant () |
Convenience function for constructing a GeneratorConstant . |
Generator that returns a constant.