1 // Copyright Andrey Semashev 2014.
2 //
3 // Use, modification and distribution is subject to
4 // the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7 #include <boost/iterator/minimum_category.hpp>
8 #include <boost/core/lightweight_test_trait.hpp>
9 #include <boost/type_traits/is_same.hpp>
10 #include <iterator>
11
12 using boost::is_same;
13 using boost::iterators::minimum_category;
14
main(int,char * [])15 int main(int, char*[])
16 {
17 BOOST_TEST_TRAIT_TRUE((is_same<minimum_category<std::forward_iterator_tag, std::random_access_iterator_tag>::type, std::forward_iterator_tag>));
18 BOOST_TEST_TRAIT_TRUE((is_same<minimum_category<std::random_access_iterator_tag, std::forward_iterator_tag>::type, std::forward_iterator_tag>));
19 BOOST_TEST_TRAIT_TRUE((is_same<minimum_category<std::random_access_iterator_tag, std::random_access_iterator_tag>::type, std::random_access_iterator_tag>));
20
21 return boost::report_errors();
22 }
23