// (C) Copyright Gennadiy Rozental 2001. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. // //! @file //! Per element comparison manipulator implementation // *************************************************************************** #ifndef BOOST_TEST_TOOLS_DETAIL_PER_ELEMENT_MANIP_HPP_050815GER #define BOOST_TEST_TOOLS_DETAIL_PER_ELEMENT_MANIP_HPP_050815GER // Boost Test #include #include #include #include #include //____________________________________________________________________________// namespace boost { namespace test_tools { // ************************************************************************** // // ************** per element comparison manipulator ************** // // ************************************************************************** // //! Per element comparison manipulator, for containers struct per_element {}; //____________________________________________________________________________// inline int operator<<( unit_test::lazy_ostream const&, per_element ) { return 0; } //____________________________________________________________________________// namespace tt_detail { template inline assertion_result operator<<(assertion_evaluate_t > const& ae, per_element ) { typedef typename OP::elem_op elem_op; return assertion::op::element_compare( ae.m_e.lhs().value(), ae.m_e.rhs() ); } //____________________________________________________________________________// inline check_type operator<<( assertion_type const&, per_element ) { return CHECK_BUILT_ASSERTION; } //____________________________________________________________________________// } // namespace tt_detail } // namespace test_tools } // namespace boost #include #endif // BOOST_TEST_TOOLS_DETAIL_PER_ELEMENT_MANIP_HPP_050815GER