test_utils.hpp 746 B

123456789101112131415161718192021222324
  1. // Boost.Range library
  2. //
  3. // Copyright Akira Takahashi 2013. Use, modification and
  4. // distribution is subject to the Boost Software License, Version
  5. // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. //
  9. // For more information, see http://www.boost.org/libs/range/
  10. //
  11. #include <boost/range/concepts.hpp>
  12. template <class RandomAccessRng>
  13. void check_random_access_range_concept(const RandomAccessRng& rng)
  14. {
  15. BOOST_RANGE_CONCEPT_ASSERT(( boost::RandomAccessRangeConcept<RandomAccessRng> ));
  16. }
  17. template <class BidirectionalRng>
  18. void check_bidirectional_range_concept(const BidirectionalRng& rng)
  19. {
  20. BOOST_RANGE_CONCEPT_ASSERT(( boost::BidirectionalRangeConcept<BidirectionalRng> ));
  21. }