![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /proc/thread-self/root/usr/include/boost/test/tools/detail/ |
Upload File : |
// (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 //! Lexicographic comparison manipulator implementation // *************************************************************************** #ifndef BOOST_TEST_TOOLS_DETAIL_LEXICOGRAPHIC_MANIP_HPP_050815GER #define BOOST_TEST_TOOLS_DETAIL_LEXICOGRAPHIC_MANIP_HPP_050815GER // Boost Test #include <boost/test/tools/detail/fwd.hpp> #include <boost/test/tools/detail/indirections.hpp> #include <boost/test/tools/assertion.hpp> #include <boost/test/tools/collection_comparison_op.hpp> #include <boost/test/detail/suppress_warnings.hpp> //____________________________________________________________________________// namespace boost { namespace test_tools { // ************************************************************************** // // ************** per element comparison manipulator ************** // // ************************************************************************** // //! Lexicographic comparison manipulator, for containers struct lexicographic {}; //____________________________________________________________________________// inline int operator<<( unit_test::lazy_ostream const&, lexicographic ) { return 0; } //____________________________________________________________________________// namespace tt_detail { template<typename T1, typename T2, typename OP> inline assertion_result operator<<(assertion_evaluate_t<assertion::binary_expr<T1,T2,OP> > const& ae, lexicographic ) { typedef typename OP::elem_op elem_op; return assertion::op::lexicographic_compare<elem_op>( ae.m_e.lhs().value(), ae.m_e.rhs() ); } //____________________________________________________________________________// inline check_type operator<<( assertion_type const&, lexicographic ) { return CHECK_BUILT_ASSERTION; } //____________________________________________________________________________// } // namespace tt_detail } // namespace test_tools } // namespace boost #include <boost/test/detail/enable_warnings.hpp> #endif // BOOST_TEST_TOOLS_DETAIL_LEXICOGRAPHIC_MANIP_HPP_050815GER