55 bool operator()(
const T& x)
const
60template<
typename IntegralType>
63 bool operator()(
const IntegralType& x)
const
64 {
return ( (x % 2) == 0 ); }
68template<
typename IntegralType>
71 bool operator()(
const IntegralType& x)
const
72 {
return ( (x % 2) != 0 ); }
117 typedef std::pair<int,int>
value_t;
120 a.push_back(std::make_pair(2, 4));
396#ifdef HAVE_TEUCHOS_ARRAY_BOUNDSCHECK
403 FilteredIterator<int*,SelectAll<int> > itr_end((&a_raw)+1, &a_raw, (&a_raw)+1);
404 FilteredIterator<int*,SelectAll<int> > itr = itr_end;
416 FilteredIterator<int*,SelectAll<int> > itr_begin(&a_raw, &a_raw, (&a_raw)+1);
417 FilteredIterator<int*,SelectAll<int> > itr = itr_begin;
Templated array class derived from the STL std::vector.
#define TEST_EQUALITY_CONST(v1, v2)
Assert the equality of v1 and constant v2.
#define TEST_EQUALITY(v1, v2)
Assert the equality of v1 and v2.
#define TEST_THROW(code, ExceptType)
Assert that the statement 'code' throws the exception 'ExceptType' (otherwise the test fails).
#define TEST_ITER_INEQUALITY(iter1, iter2)
Assert that two iterators are NOT equal.
#define ECHO(statement)
Echo the given statement before it is executed.
#define TEST_ITER_EQUALITY(iter1, iter2)
Assert that two iterators are equal.
Defines basic traits returning the name of a type in a portable and readable way.
#define TEUCHOS_UNIT_TEST(TEST_GROUP, TEST_NAME)
Macro for defining a (non-templated) unit test.
std::vector< T >::iterator iterator
The type of a forward iterator.
std::vector< T >::const_iterator const_iterator
The type of a const forward iterator.
C++ Standard Library compatable filtered iterator.
Concrete serial communicator subclass.