PlayRho  2.0.0
An interactive physics engine & library.
playrho::LexicographicalLessEqual< T > Struct Template Reference

Function object for performing lexicographical less-than or equal-to comparisons of containers. More...

#include <playrho/Templates.hpp>

Public Member Functions

constexpr auto operator() (const T &lhs, const T &rhs) const -> decltype(std::mismatch(begin(lhs), end(lhs), begin(rhs), end(rhs)), true)
 Checks whether the first argument is lexicographically less-than or equal-to the second argument.
 

Detailed Description

template<typename T>
struct playrho::LexicographicalLessEqual< T >

Function object for performing lexicographical less-than or equal-to comparisons of containers.

See also
https://en.cppreference.com/w/cpp/algorithm/lexicographical_compare
https://en.cppreference.com/w/cpp/utility/functional/less_equal

The documentation for this struct was generated from the following file: