less.hpp 472 B

123456789101112131415161718192021222324252627
  1. /*
  2. Copyright 2019 Glen Joseph Fernandes
  3. ([email protected])
  4. Distributed under the Boost Software License, Version 1.0.
  5. (http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #ifndef BOOST_RANGE_DETAIL_LESS
  8. #define BOOST_RANGE_DETAIL_LESS
  9. namespace boost {
  10. namespace range {
  11. namespace detail {
  12. struct less {
  13. template<class T, class U>
  14. bool operator()(const T& lhs, const U& rhs) const {
  15. return lhs < rhs;
  16. }
  17. };
  18. } /* detail */
  19. } /* range */
  20. } /* boost */
  21. #endif