boost::numeric::bindings::traits::is_equal< T > Struct Template Reference

To be used instead of operator== for numeric types Implemented as functor instead of free function because of specialisation rationale: operator== on builtin types can not be overloaded. More...

#include <algorithm.hpp>

List of all members.

Public Member Functions

 is_equal (typename type_traits< T >::real_type tolerance)
bool operator() (const T &a, const T &b)

Public Attributes

type_traits< T >::real_type tolerance_

Detailed Description

template<typename T>
struct boost::numeric::bindings::traits::is_equal< T >

To be used instead of operator== for numeric types Implemented as functor instead of free function because of specialisation rationale: operator== on builtin types can not be overloaded.

Definition at line 14 of file algorithm.hpp.


Constructor & Destructor Documentation

template<typename T >
boost::numeric::bindings::traits::is_equal< T >::is_equal ( typename type_traits< T >::real_type  tolerance  )  [inline]

Definition at line 16 of file algorithm.hpp.


Member Function Documentation

template<typename T >
bool boost::numeric::bindings::traits::is_equal< T >::operator() ( const T &  a,
const T &  b 
) [inline]

Member Data Documentation

template<typename T >
type_traits< T >::real_type boost::numeric::bindings::traits::is_equal< T >::tolerance_

The documentation for this struct was generated from the following file:

Generated on Wed Nov 23 19:01:50 2011 for FreeCAD by  doxygen 1.6.1