26#ifndef CASA_STDLOGICAL_H
27#define CASA_STDLOGICAL_H
29#include <casacore/casa/aips.h>
30#include <casacore/casa/BasicMath/Functors.h>
37template <
typename C1,
typename C2,
typename CompareOperator>
38bool compareAll(
const C1& l,
const C2& r, CompareOperator op) {
39 if (l.size() != r.size())
return false;
40 return compareAll(l.begin(), l.end(), r.begin(), op);
44template <
typename C1,
typename C2,
typename U>
45bool allNear(
const C1& l,
const C2& r, U tolerance) {
50template <
typename C1,
typename C2,
typename U>
For temporary backward namespace compatibility, use casa as alias for casacore.
bool compareAll(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, CompareOperator op)
Define a function to compare all elements of two sequences.
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 for if two values are absolutely near each other.
Functor to test if two values are relatively near each other.