// Copyright 2017 Peter Dimov. // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include #include #include #include #include #include #include #include #include #include #include #include struct X { }; int main() { using boost::container_hash::is_range; BOOST_TEST_TRAIT_FALSE((is_range)); BOOST_TEST_TRAIT_FALSE((is_range)); BOOST_TEST_TRAIT_FALSE((is_range)); BOOST_TEST_TRAIT_FALSE((is_range)); BOOST_TEST_TRAIT_FALSE((is_range)); BOOST_TEST_TRAIT_FALSE((is_range)); BOOST_TEST_TRAIT_FALSE((is_range)); BOOST_TEST_TRAIT_FALSE((is_range)); BOOST_TEST_TRAIT_TRUE((is_range)); BOOST_TEST_TRAIT_TRUE((is_range)); BOOST_TEST_TRAIT_TRUE((is_range)); BOOST_TEST_TRAIT_TRUE((is_range)); BOOST_TEST_TRAIT_TRUE((is_range< std::vector >)); BOOST_TEST_TRAIT_TRUE((is_range< std::vector const >)); BOOST_TEST_TRAIT_TRUE((is_range< std::deque >)); BOOST_TEST_TRAIT_TRUE((is_range< std::deque const >)); BOOST_TEST_TRAIT_TRUE((is_range< std::set >)); BOOST_TEST_TRAIT_TRUE((is_range< std::set const >)); BOOST_TEST_TRAIT_TRUE((is_range< std::multiset >)); BOOST_TEST_TRAIT_TRUE((is_range< std::multiset const >)); BOOST_TEST_TRAIT_TRUE((is_range< std::map >)); BOOST_TEST_TRAIT_TRUE((is_range< std::map const >)); BOOST_TEST_TRAIT_TRUE((is_range< std::multimap >)); BOOST_TEST_TRAIT_TRUE((is_range< std::multimap const >)); BOOST_TEST_TRAIT_TRUE((is_range< std::array >)); BOOST_TEST_TRAIT_TRUE((is_range< std::array const >)); BOOST_TEST_TRAIT_TRUE((is_range< std::forward_list >)); BOOST_TEST_TRAIT_TRUE((is_range< std::forward_list const >)); BOOST_TEST_TRAIT_TRUE((is_range< std::unordered_set >)); BOOST_TEST_TRAIT_TRUE((is_range< std::unordered_set const >)); BOOST_TEST_TRAIT_TRUE((is_range< std::unordered_multiset >)); BOOST_TEST_TRAIT_TRUE((is_range< std::unordered_multiset const >)); BOOST_TEST_TRAIT_TRUE((is_range< std::unordered_map >)); BOOST_TEST_TRAIT_TRUE((is_range< std::unordered_map const >)); BOOST_TEST_TRAIT_TRUE((is_range< std::unordered_multimap >)); BOOST_TEST_TRAIT_TRUE((is_range< std::unordered_multimap const >)); return boost::report_errors(); }