less.hpp 472 B

1234567891011121314151617181920212223242526
  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