Skip to content

ludus::foundation::core::KeyLess

Ludus Wiki · API overview · Browse API

Struct

Stateless ordering policy. Keys must provide a nonthrowing strict weak order.

Declared in modules/foundation/containers/include/ludus/foundation/containers/sorted_map.hpp

#include <ludus/foundation/containers/sorted_map.hpp>
struct ludus::foundation::core::KeyLess

Methods

operator()

template <typename KeyType>
constexpr bool ludus::foundation::core::KeyLess::operator()(const KeyType &left, const KeyType &right) const
True when left orders before right by operator<.

Declared in modules/foundation/containers/include/ludus/foundation/containers/sorted_map.hpp