BinaryConstant< _FirstArgument, _SecondArgument, _Result > Class Template Reference
[Functor: Constant]

Binary functor that returns a constant. More...

#include <constant.h>

List of all members.

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_typeoperator() (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.

Detailed Description

template<typename _FirstArgument, typename _SecondArgument, typename _Result>
class BinaryConstant< _FirstArgument, _SecondArgument, _Result >

Binary functor that returns a constant.


The documentation for this class was generated from the following file:
Generated on Thu Jun 30 02:14:51 2016 for Algorithms and Data Structures Package by  doxygen 1.6.3