2014-07-19 21:39:49 +04:00
|
|
|
// Copyright Andrey Semashev 2014.
|
|
|
|
|
//
|
|
|
|
|
// Use, modification and distribution is subject to
|
|
|
|
|
// 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)
|
|
|
|
|
|
|
|
|
|
#include <boost/iterator/minimum_category.hpp>
|
|
|
|
|
#include <boost/core/lightweight_test_trait.hpp>
|
|
|
|
|
#include <iterator>
|
2024-06-09 15:20:41 +03:00
|
|
|
#include <type_traits>
|
2014-07-19 21:39:49 +04:00
|
|
|
|
2024-06-09 15:20:41 +03:00
|
|
|
using std::is_same;
|
2014-07-19 21:39:49 +04:00
|
|
|
using boost::iterators::minimum_category;
|
|
|
|
|
|
|
|
|
|
int main(int, char*[])
|
|
|
|
|
{
|
|
|
|
|
BOOST_TEST_TRAIT_TRUE((is_same<minimum_category<std::forward_iterator_tag, std::random_access_iterator_tag>::type, std::forward_iterator_tag>));
|
|
|
|
|
BOOST_TEST_TRAIT_TRUE((is_same<minimum_category<std::random_access_iterator_tag, std::forward_iterator_tag>::type, std::forward_iterator_tag>));
|
|
|
|
|
BOOST_TEST_TRAIT_TRUE((is_same<minimum_category<std::random_access_iterator_tag, std::random_access_iterator_tag>::type, std::random_access_iterator_tag>));
|
|
|
|
|
|
|
|
|
|
return boost::report_errors();
|
|
|
|
|
}
|