29 #ifndef CASA_STDLOGICAL_H
30 #define CASA_STDLOGICAL_H
40 template<
typename C1,
typename C2,
typename CompareOperator>
41 bool compareAll (
const C1& l,
const C2& r, CompareOperator op)
43 if (l.size() != r.size())
return false;
44 return compareAll (l.begin(), l.end(), r.begin(), op);
48 template<
typename C1,
typename C2,
typename U>
49 bool allNear (
const C1& l,
const C2& r, U tolerance)
53 template<
typename C1,
typename C2,
typename U>
Functor to test for if two values are absolutely near each other.
bool allNearAbs(const C1 &l, const C2 &r, U tolerance)
Test if all elements of the containers are absolutely near each other.
bool allNear(const C1 &l, const C2 &r, U tolerance)
Test if all elements of the containers are relatively near each other.
Functor to test if two values are relatively near each other.
bool compareAll(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, CompareOperator op)
Define a function to compare all elements of two sequences.