////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2004-2019. 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/container for documentation. // ////////////////////////////////////////////////////////////////////////////// #include #include #include #include #include #include #include #include "set_test.hpp" #include using namespace boost::container; template struct GetSetContainer { template struct apply { typedef flat_set < ValueType , std::less , typename boost::container::dtl::container_or_allocator_rebind::type > set_type; typedef flat_multiset < ValueType , std::less , typename boost::container::dtl::container_or_allocator_rebind::type > multiset_type; }; }; int main() { using namespace boost::container::test; //////////////////////////////////// // Testing sequence container implementations //////////////////////////////////// { typedef std::set MyStdSet; typedef std::multiset MyStdMultiSet; if (0 != test::set_test < GetSetContainer >::apply::set_type , MyStdSet , GetSetContainer >::apply::multiset_type , MyStdMultiSet>()) { std::cout << "Error in set_test >" << std::endl; return 1; } if (0 != test::set_test < GetSetContainer >::apply::set_type , MyStdSet , GetSetContainer >::apply::multiset_type , MyStdMultiSet>()) { std::cout << "Error in set_test >" << std::endl; return 1; } if (0 != test::set_test < GetSetContainer >::apply::set_type , MyStdSet , GetSetContainer >::apply::multiset_type , MyStdMultiSet>()) { std::cout << "Error in set_test >" << std::endl; return 1; } if (0 != test::set_test < GetSetContainer >::apply::set_type , MyStdSet , GetSetContainer >::apply::multiset_type , MyStdMultiSet>()) { std::cout << "Error in set_test >" << std::endl; return 1; } if (0 != test::set_test < GetSetContainer >::apply::set_type , MyStdSet , GetSetContainer >::apply::multiset_type , MyStdMultiSet>()) { std::cout << "Error in set_test >" << std::endl; return 1; } } return 0; }