• Home
  • Raw
  • Download

Lines Matching refs:custom

20 class custom {  class
22 custom ( int x ) : v(x) {} in custom() function in custom
23 custom ( const custom &rhs ) : v(rhs.v) {} in custom() function in custom
24 ~custom () {} in ~custom()
25 custom & operator = ( const custom &rhs ) { v = rhs.v; return *this; } in operator =()
27 bool operator < ( const custom &rhs ) const { return v < rhs.v; } in operator <()
28 … bool operator == ( const custom &rhs ) const { return v == rhs.v; } // need this for the test in operator ==()
35 std::ostream & operator << ( std::ostream & os, const custom &x ) { return x.print ( os ); } in operator <<()
37 bool customLess ( const custom &lhs, const custom &rhs ) { return lhs.v < rhs.v; } in customLess()
149 BOOST_CHECK_EQUAL ( custom( 3), ba::clamp ( custom( 3), custom(1), custom(10))); in test_custom()
150 BOOST_CHECK_EQUAL ( custom( 1), ba::clamp ( custom( 1), custom(1), custom(10))); in test_custom()
151 BOOST_CHECK_EQUAL ( custom( 1), ba::clamp ( custom( 0), custom(1), custom(10))); in test_custom()
152 BOOST_CHECK_EQUAL ( custom(10), ba::clamp ( custom(10), custom(1), custom(10))); in test_custom()
153 BOOST_CHECK_EQUAL ( custom(10), ba::clamp ( custom(11), custom(1), custom(10))); in test_custom()
155 BOOST_CHECK_EQUAL ( custom( 3), ba::clamp ( custom( 3), custom(1), custom(10), customLess )); in test_custom()
156 BOOST_CHECK_EQUAL ( custom( 1), ba::clamp ( custom( 1), custom(1), custom(10), customLess )); in test_custom()
157 BOOST_CHECK_EQUAL ( custom( 1), ba::clamp ( custom( 0), custom(1), custom(10), customLess )); in test_custom()
158 BOOST_CHECK_EQUAL ( custom(10), ba::clamp ( custom(10), custom(1), custom(10), customLess )); in test_custom()
159 BOOST_CHECK_EQUAL ( custom(10), ba::clamp ( custom(11), custom(1), custom(10), customLess )); in test_custom()