/third_party/boost/libs/core/test/swap/ |
D | swap_array_of_class.cpp | 25 void swap(swap_test_class& left, swap_test_class& right) in swap() 33 void swap(swap_test_class& left, swap_test_class& right) in swap() 43 const swap_test_class initial_array1[array_size] = { swap_test_class(1), swap_test_class(2) }; in main() 44 const swap_test_class initial_array2[array_size] = { swap_test_class(3), swap_test_class(4) }; in main() 46 swap_test_class array1[array_size]; in main() 47 swap_test_class array2[array_size]; in main() 52 swap_test_class::reset(); in main() 58 BOOST_CHECK_EQUAL(swap_test_class::swap_count(), array_size); in main() 59 BOOST_CHECK_EQUAL(swap_test_class::copy_count(), 0); in main()
|
D | array_of_class.cpp | 25 void swap(swap_test_class& left, swap_test_class& right) in swap() 33 void swap(swap_test_class& left, swap_test_class& right) in swap() 43 const swap_test_class initial_array1[array_size] = { swap_test_class(1), swap_test_class(2) }; in main() 44 const swap_test_class initial_array2[array_size] = { swap_test_class(3), swap_test_class(4) }; in main() 46 swap_test_class array1[array_size]; in main() 47 swap_test_class array2[array_size]; in main() 52 swap_test_class::reset(); in main() 58 BOOST_CHECK_EQUAL(swap_test_class::swap_count(), array_size); in main() 59 BOOST_CHECK_EQUAL(swap_test_class::copy_count(), 0); in main()
|
D | swap_test_class.hpp | 13 class swap_test_class class 17 explicit swap_test_class(int arg = 0) in swap_test_class() function in swap_test_class 24 ~swap_test_class() in ~swap_test_class() 29 swap_test_class(const swap_test_class& arg) in swap_test_class() function in swap_test_class 37 swap_test_class& operator=(const swap_test_class& arg) in operator =() 44 void swap(swap_test_class& other) in swap() 104 inline bool operator==(const swap_test_class & lhs, const swap_test_class & rhs) in operator ==() 109 inline bool operator!=(const swap_test_class & lhs, const swap_test_class & rhs) in operator !=()
|
D | swap_specialized_in_boost_and_other.cpp | 31 void swap(::other::swap_test_class& left, ::other::swap_test_class& right) in swap() 40 void swap(swap_test_class& left, swap_test_class& right) in swap() 48 const other::swap_test_class initial_value1(1); in main() 49 const other::swap_test_class initial_value2(2); in main() 51 other::swap_test_class object1 = initial_value1; in main() 52 other::swap_test_class object2 = initial_value2; in main() 54 other::swap_test_class::reset(); in main() 60 BOOST_CHECK_EQUAL(other::swap_test_class::swap_count(),1); in main() 61 BOOST_CHECK_EQUAL(other::swap_test_class::copy_count(),0); in main()
|
D | specialized_in_boost_and_other.cpp | 31 void swap(::other::swap_test_class& left, ::other::swap_test_class& right) in swap() 40 void swap(swap_test_class& left, swap_test_class& right) in swap() 48 const other::swap_test_class initial_value1(1); in main() 49 const other::swap_test_class initial_value2(2); in main() 51 other::swap_test_class object1 = initial_value1; in main() 52 other::swap_test_class object2 = initial_value2; in main() 54 other::swap_test_class::reset(); in main() 60 BOOST_CHECK_EQUAL(other::swap_test_class::swap_count(),1); in main() 61 BOOST_CHECK_EQUAL(other::swap_test_class::copy_count(),0); in main()
|
D | specialized_in_global.cpp | 16 void swap(swap_test_class& left, swap_test_class& right) in swap() 23 const swap_test_class initial_value1(1); in main() 24 const swap_test_class initial_value2(2); in main() 26 swap_test_class object1 = initial_value1; in main() 27 swap_test_class object2 = initial_value2; in main() 29 swap_test_class::reset(); in main() 35 BOOST_CHECK_EQUAL(swap_test_class::swap_count(),1); in main() 36 BOOST_CHECK_EQUAL(swap_test_class::copy_count(),0); in main()
|
D | swap_specialized_in_global.cpp | 16 void swap(swap_test_class& left, swap_test_class& right) in swap() 23 const swap_test_class initial_value1(1); in main() 24 const swap_test_class initial_value2(2); in main() 26 swap_test_class object1 = initial_value1; in main() 27 swap_test_class object2 = initial_value2; in main() 29 swap_test_class::reset(); in main() 35 BOOST_CHECK_EQUAL(swap_test_class::swap_count(),1); in main() 36 BOOST_CHECK_EQUAL(swap_test_class::copy_count(),0); in main()
|
D | swap_specialized_in_std.cpp | 20 void swap(swap_test_class& left, swap_test_class& right) in swap() 28 const swap_test_class initial_value1(1); in main() 29 const swap_test_class initial_value2(2); in main() 31 swap_test_class object1 = initial_value1; in main() 32 swap_test_class object2 = initial_value2; in main() 34 swap_test_class::reset(); in main() 40 BOOST_CHECK_EQUAL(swap_test_class::swap_count(),1); in main() 41 BOOST_CHECK_EQUAL(swap_test_class::copy_count(),0); in main()
|
D | specialized_in_std.cpp | 20 void swap(swap_test_class& left, swap_test_class& right) in swap() 28 const swap_test_class initial_value1(1); in main() 29 const swap_test_class initial_value2(2); in main() 31 swap_test_class object1 = initial_value1; in main() 32 swap_test_class object2 = initial_value2; in main() 34 swap_test_class::reset(); in main() 40 BOOST_CHECK_EQUAL(swap_test_class::swap_count(),1); in main() 41 BOOST_CHECK_EQUAL(swap_test_class::copy_count(),0); in main()
|
D | specialized_in_boost.cpp | 21 void swap(swap_test_class& left, swap_test_class& right) in swap() 29 const boost::swap_test_class initial_value1(1); in main() 30 const boost::swap_test_class initial_value2(2); in main() 32 boost::swap_test_class object1 = initial_value1; in main() 33 boost::swap_test_class object2 = initial_value2; in main() 35 boost::swap_test_class::reset(); in main() 41 BOOST_CHECK_EQUAL(boost::swap_test_class::swap_count(),1); in main() 42 BOOST_CHECK_EQUAL(boost::swap_test_class::copy_count(),0); in main()
|
D | swap_specialized_in_boost.cpp | 21 void swap(swap_test_class& left, swap_test_class& right) in swap() 29 const boost::swap_test_class initial_value1(1); in main() 30 const boost::swap_test_class initial_value2(2); in main() 32 boost::swap_test_class object1 = initial_value1; in main() 33 boost::swap_test_class object2 = initial_value2; in main() 35 boost::swap_test_class::reset(); in main() 41 BOOST_CHECK_EQUAL(boost::swap_test_class::swap_count(),1); in main() 42 BOOST_CHECK_EQUAL(boost::swap_test_class::copy_count(),0); in main()
|
D | specialized_in_other.cpp | 21 void swap(swap_test_class& left, swap_test_class& right) in swap() 29 const other::swap_test_class initial_value1(1); in main() 30 const other::swap_test_class initial_value2(2); in main() 32 other::swap_test_class object1 = initial_value1; in main() 33 other::swap_test_class object2 = initial_value2; in main() 35 other::swap_test_class::reset(); in main() 41 BOOST_CHECK_EQUAL(other::swap_test_class::swap_count(),1); in main() 42 BOOST_CHECK_EQUAL(other::swap_test_class::copy_count(),0); in main()
|
D | swap_specialized_in_other.cpp | 21 void swap(swap_test_class& left, swap_test_class& right) in swap() 29 const other::swap_test_class initial_value1(1); in main() 30 const other::swap_test_class initial_value2(2); in main() 32 other::swap_test_class object1 = initial_value1; in main() 33 other::swap_test_class object2 = initial_value2; in main() 35 other::swap_test_class::reset(); in main() 41 BOOST_CHECK_EQUAL(other::swap_test_class::swap_count(),1); in main() 42 BOOST_CHECK_EQUAL(other::swap_test_class::copy_count(),0); in main()
|
D | array_of_array_of_class.cpp | 25 void swap(swap_test_class& left, swap_test_class& right) in swap() 33 void swap(swap_test_class& left, swap_test_class& right) in swap() 46 swap_test_class array1[first_dimension][second_dimension]; in main() 47 swap_test_class array2[first_dimension][second_dimension]; in main() 49 swap_test_class* const ptr1 = array1[0]; in main() 50 swap_test_class* const ptr2 = array2[0]; in main() 66 BOOST_CHECK_EQUAL(swap_test_class::swap_count(), number_of_elements); in main() 67 BOOST_CHECK_EQUAL(swap_test_class::copy_count(), 0); in main()
|
D | swap_array_of_array_of_class.cpp | 25 void swap(swap_test_class& left, swap_test_class& right) in swap() 33 void swap(swap_test_class& left, swap_test_class& right) in swap() 46 swap_test_class array1[first_dimension][second_dimension]; in main() 47 swap_test_class array2[first_dimension][second_dimension]; in main() 49 swap_test_class* const ptr1 = array1[0]; in main() 50 swap_test_class* const ptr2 = array2[0]; in main() 66 BOOST_CHECK_EQUAL(swap_test_class::swap_count(), number_of_elements); in main() 67 BOOST_CHECK_EQUAL(swap_test_class::copy_count(), 0); in main()
|
D | swap_std_vector_of_global.cpp | 21 void swap(swap_test_class& left, swap_test_class& right) in swap() 28 typedef std::vector<swap_test_class> vector_type; in main() 33 const vector_type initial_value1(initial_size1, swap_test_class(1)); in main() 34 const vector_type initial_value2(initial_size2, swap_test_class(2)); in main() 39 swap_test_class::reset(); in main() 49 BOOST_CHECK_EQUAL(swap_test_class::swap_count(),0); in main() 50 BOOST_CHECK_EQUAL(swap_test_class::copy_count(),0); in main()
|
D | std_vector_of_global.cpp | 21 void swap(swap_test_class& left, swap_test_class& right) in swap() 28 typedef std::vector<swap_test_class> vector_type; in main() 33 const vector_type initial_value1(initial_size1, swap_test_class(1)); in main() 34 const vector_type initial_value2(initial_size2, swap_test_class(2)); in main() 39 swap_test_class::reset(); in main() 49 BOOST_CHECK_EQUAL(swap_test_class::swap_count(),0); in main() 50 BOOST_CHECK_EQUAL(swap_test_class::copy_count(),0); in main()
|
D | no_ambiguity_in_boost.cpp | 29 const boost::swap_test_class initial_value1(1); in main() 30 const boost::swap_test_class initial_value2(2); in main() 32 boost::swap_test_class object1 = initial_value1; in main() 33 boost::swap_test_class object2 = initial_value2; in main() 35 boost::swap_test_class::reset(); in main() 40 BOOST_CHECK_EQUAL(boost::swap_test_class::swap_count(),0); in main() 41 BOOST_CHECK_EQUAL(boost::swap_test_class::copy_count(),3); in main()
|
D | swap_no_ambiguity_in_boost.cpp | 29 const boost::swap_test_class initial_value1(1); in main() 30 const boost::swap_test_class initial_value2(2); in main() 32 boost::swap_test_class object1 = initial_value1; in main() 33 boost::swap_test_class object2 = initial_value2; in main() 35 boost::swap_test_class::reset(); in main() 40 BOOST_CHECK_EQUAL(boost::swap_test_class::swap_count(),0); in main() 41 BOOST_CHECK_EQUAL(boost::swap_test_class::copy_count(),3); in main()
|
D | array_of_template.cpp | 25 swap_test_class swap_test_object; 53 …const swap_test_template<int> initial_array1[array_size] = { swap_test_class(1), swap_test_class(2… in main() 54 …const swap_test_template<int> initial_array2[array_size] = { swap_test_class(3), swap_test_class(4… in main() 62 swap_test_class::reset(); in main() 68 BOOST_CHECK_EQUAL(swap_test_class::swap_count(), array_size); in main() 69 BOOST_CHECK_EQUAL(swap_test_class::copy_count(), 0); in main()
|
D | swap_array_of_template.cpp | 25 swap_test_class swap_test_object; 53 …const swap_test_template<int> initial_array1[array_size] = { swap_test_class(1), swap_test_class(2… in main() 54 …const swap_test_template<int> initial_array2[array_size] = { swap_test_class(3), swap_test_class(4… in main() 62 swap_test_class::reset(); in main() 68 BOOST_CHECK_EQUAL(swap_test_class::swap_count(), array_size); in main() 69 BOOST_CHECK_EQUAL(swap_test_class::copy_count(), 0); in main()
|
D | swap_std_vector_of_other.cpp | 26 void swap(swap_test_class& left, swap_test_class& right) in swap() 34 typedef other::swap_test_class swap_test_class_type; in main()
|
D | swap_std_vector_of_boost.cpp | 26 void swap(swap_test_class& left, swap_test_class& right) in swap() 34 typedef boost::swap_test_class swap_test_class_type; in main()
|
D | std_vector_of_other.cpp | 26 void swap(swap_test_class& left, swap_test_class& right) in swap() 34 typedef other::swap_test_class swap_test_class_type; in main()
|
D | std_vector_of_boost.cpp | 26 void swap(swap_test_class& left, swap_test_class& right) in swap() 34 typedef boost::swap_test_class swap_test_class_type; in main()
|