StormByte 3.0.0
C++26 foundation of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Safe::Map< K, V, Compare >::value_compare Class Reference

Orders entries by key, using the map comparator. More...

#include <StormByte/safe/map.hxx>

Public Member Functions

bool operator() (const value_type &left, const value_type &right) const
 Compare two entries by key.

Friends

class Map

Detailed Description

template<Type::SafeValue K, Type::SafeValue V, class Compare = std::less<K>>
class StormByte::Safe::Map< K, V, Compare >::value_compare

Orders entries by key, using the map comparator.

Member Function Documentation

◆ operator()()

template<Type::SafeValue K, Type::SafeValue V, class Compare = std::less<K>>
bool StormByte::Safe::Map< K, V, Compare >::value_compare::operator() ( const value_type & left,
const value_type & right ) const
inline

Compare two entries by key.

Parameters
leftLeft entry.
rightRight entry.
Returns
Whether left precedes right.

◆ Map

template<Type::SafeValue K, Type::SafeValue V, class Compare = std::less<K>>
friend class Map
friend

The documentation for this class was generated from the following file:
  • lib/public/StormByte/safe/map.hxx