// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_RANGES_FUNCTIONAL_H_ #define BASE_RANGES_FUNCTIONAL_H_ #include <functional> #include <type_traits> #include <utility> namespace base { namespace ranges { // Simplified implementations of C++20's std::ranges comparison function // objects. As opposed to the std::ranges implementation, these versions do not // constrain the passed-in types. // // Reference: https://wg21.link/range.cmp equal_to; not_equal_to; greater; less; greater_equal; less_equal; } // namespace ranges } // namespace base #endif // BASE_RANGES_FUNCTIONAL_H_