libhatchet
Loading...
Searching...
No Matches
hxflat_map_value_t< key_t_, mapped_t_ > Class Template Reference

#include <hxflat_map.hpp>

Public Member Functions

bool operator== (const hxflat_map_value_t &x_) const
bool operator< (const hxflat_map_value_t &x_) const

Public Attributes

const key_t_ & key
mapped_t_ & value

Detailed Description

template<typename key_t_, typename mapped_t_>
class hxflat_map_value_t< key_t_, mapped_t_ >

hxflat_map_value_t - A proxy referencing the key and mapped value at a fixed position, returned by dereferencing an hxflat_map's iterator.

Member Function Documentation

◆ operator<()

template<typename key_t_, typename mapped_t_>
bool hxflat_map_value_t< key_t_, mapped_t_ >::operator< ( const hxflat_map_value_t< key_t_, mapped_t_ > & x_) const
inline

Returns true when this element is ordered before x, comparing keys first and then values with hxkey_equal and hxkey_less.

  • x : The element to compare against.

◆ operator==()

template<typename key_t_, typename mapped_t_>
bool hxflat_map_value_t< key_t_, mapped_t_ >::operator== ( const hxflat_map_value_t< key_t_, mapped_t_ > & x_) const
inline

Compares the referenced key and value for equality with x, using hxkey_equal on both.

  • x : The element to compare against.

Member Data Documentation

◆ key

template<typename key_t_, typename mapped_t_>
const key_t_& hxflat_map_value_t< key_t_, mapped_t_ >::key

The referenced key.

◆ value

template<typename key_t_, typename mapped_t_>
mapped_t_& hxflat_map_value_t< key_t_, mapped_t_ >::value

The referenced mapped value, allowing mutation.


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