kblib 0.2.3
General utilities library for modern C++
kblib::direct_map< Key, T, allocator > Class Template Reference

#include <kblib/direct_map.h>

Public Types

using key_type = Key
 
using mapped_type = T
 
using value_type = std::pair< const Key, T >
 
using size_type = std::size_t
 
using difference_type = std::ptrdiff_t
 
using reference = value_type &
 
using const_reference = const value_type &
 
using pointer = value_type *
 
using const_pointer = const value_type *
 
using iterator = iter< value_type >
 
using const_iterator = iter< const value_type >
 
using reverse_iterator = std::reverse_iterator< iterator >
 
using const_reverse_iterator = std::reverse_iterator< const_iterator >
 

Public Member Functions

constexpr direct_map () noexcept=default
 
template<typename InputIt >
constexpr direct_map (InputIt first, InputIt last)
 
constexpr direct_map (const direct_map &other)
 
constexpr direct_map (direct_map &&other) noexcept
 
constexpr direct_map (std::initializer_list< value_type > init)
 
 KBLIB_CXX20 (constexpr) ~direct_map()
 
constexpr auto operator= (const direct_map &other) -> direct_map &
 
constexpr auto operator= (direct_map &&other) noexcept -> direct_map &=default
 
constexpr auto operator= (std::initializer_list< value_type > init) -> direct_map &
 
KBLIB_NODISCARD constexpr auto at (Key key) &-> T &
 
KBLIB_NODISCARD constexpr auto at (Key key) &&-> T &&
 
KBLIB_NODISCARD constexpr auto at (Key key) const &-> const T &
 
KBLIB_NODISCARD constexpr auto at (Key key) const &&-> const T &&
 
KBLIB_NODISCARD constexpr T & operator[] (Key key) noexcept(std::is_nothrow_default_constructible< T >::value)
 
KBLIB_NODISCARD constexpr auto begin () &noexcept -> iterator
 
KBLIB_NODISCARD constexpr auto begin () const &noexcept -> const_iterator
 
KBLIB_NODISCARD constexpr auto cbegin () const &noexcept -> const_iterator
 
KBLIB_NODISCARD constexpr auto end () &noexcept -> iterator
 
KBLIB_NODISCARD constexpr auto end () const &noexcept -> const_iterator
 
KBLIB_NODISCARD constexpr auto cend () const &noexcept -> const_iterator
 
KBLIB_NODISCARD constexpr auto rbegin () &noexcept -> auto
 
KBLIB_NODISCARD constexpr auto rbegin () const &noexcept -> auto
 
KBLIB_NODISCARD constexpr auto crbegin () const &noexcept -> auto
 
KBLIB_NODISCARD constexpr auto rend () &noexcept -> auto
 
KBLIB_NODISCARD constexpr auto rend () const &noexcept -> auto
 
KBLIB_NODISCARD constexpr auto crend () const &noexcept -> auto
 
KBLIB_NODISCARD constexpr auto empty () const &noexcept -> bool
 
KBLIB_NODISCARD constexpr auto size () const &noexcept -> std::size_t
 
KBLIB_NODISCARD constexpr auto ssize () const &noexcept -> std::ptrdiff_t
 
constexpr auto clear () noexcept -> void
 
constexpr auto insert (const value_type &value) -> std::pair< iterator, bool >
 
template<typename U >
constexpr auto insert (U &&value) -> enable_if_t< std::is_constructible< value_type, U && >::value, std::pair< iterator, bool > >
 
constexpr auto insert (value_type &&value) -> std::pair< iterator, bool >
 
template<typename U >
constexpr auto insert_or_assign (Key key, U &&value) -> std::pair< iterator, bool >
 
template<typename... Args>
constexpr auto try_emplace (Key key, Args &&... args) -> std::pair< iterator, bool >
 
constexpr auto erase (iterator pos) noexcept -> iterator
 
constexpr auto erase (const_iterator pos) noexcept -> iterator
 
constexpr auto erase (iterator first, iterator last) noexcept -> iterator
 
constexpr auto erase (Key key) noexcept -> std::size_t
 
constexpr auto swap (direct_map &other) noexcept -> void
 
KBLIB_NODISCARD constexpr auto contains (Key key) const noexcept -> bool
 
KBLIB_NODISCARD constexpr auto count (Key key) const noexcept -> std::size_t
 
KBLIB_NODISCARD constexpr auto find (Key key) &noexcept -> iterator
 
KBLIB_NODISCARD constexpr auto find (Key key) const &noexcept -> const_iterator
 
KBLIB_NODISCARD constexpr auto equal_range (Key key) &noexcept -> std::pair< iterator, iterator >
 
KBLIB_NODISCARD constexpr auto equal_range (Key key) const &noexcept -> std::pair< const_iterator, const_iterator >
 
KBLIB_NODISCARD constexpr auto lower_bound (Key key) &noexcept -> iterator
 
KBLIB_NODISCARD constexpr auto lower_bound (Key key) const &noexcept -> const_iterator
 
KBLIB_NODISCARD constexpr auto upper_bound (Key key) &noexcept -> iterator
 
KBLIB_NODISCARD constexpr auto upper_bound (Key key) const &noexcept -> const_iterator
 

Static Public Member Functions

KBLIB_NODISCARD static constexpr auto max_size () noexcept -> std::size_t
 
KBLIB_NODISCARD static constexpr auto min () noexcept -> Key
 
KBLIB_NODISCARD static constexpr auto max () noexcept -> Key
 
KBLIB_NODISCARD static constexpr auto index (Key key) noexcept -> std::ptrdiff_t
 
KBLIB_NODISCARD static constexpr auto uindex (Key key) noexcept -> std::size_t
 
KBLIB_NODISCARD static constexpr auto to_key (std::ptrdiff_t i) noexcept -> Key
 

Friends

KBLIB_NODISCARD friend constexpr auto operator== (const direct_map &l, const direct_map &r) noexcept(noexcept(std::declval< T & >()==std::declval< T & >())) -> bool
 
KBLIB_NODISCARD friend constexpr auto operator!= (const direct_map &l, const direct_map &r) noexcept(noexcept(std::declval< T & >()==std::declval< T & >())) -> bool
 
KBLIB_NODISCARD friend constexpr auto operator< (const direct_map &l, const direct_map &r) noexcept(noexcept(std::declval< T & >(), std::declval< T & >())) -> bool
 
KBLIB_NODISCARD friend constexpr auto operator> (const direct_map &l, const direct_map &r) noexcept(noexcept(std::declval< T & >(), std::declval< T & >())) -> bool
 
KBLIB_NODISCARD friend constexpr auto operator<= (const direct_map &l, const direct_map &r) noexcept(noexcept(std::declval< T & >(), std::declval< T & >())) -> bool
 
KBLIB_NODISCARD friend constexpr auto operator>= (const direct_map &l, const direct_map &r) noexcept(noexcept(std::declval< T & >(), std::declval< T & >())) -> bool
 

Detailed Description

template<typename Key, typename T, typename allocator = void>
class kblib::direct_map< Key, T, allocator >

Definition at line 125 of file direct_map.h.

Member Typedef Documentation

◆ const_iterator

template<typename Key , typename T , typename allocator = void>
using kblib::direct_map< Key, T, allocator >::const_iterator = iter<const value_type>

Definition at line 241 of file direct_map.h.

◆ const_pointer

template<typename Key , typename T , typename allocator = void>
using kblib::direct_map< Key, T, allocator >::const_pointer = const value_type*

Definition at line 137 of file direct_map.h.

◆ const_reference

template<typename Key , typename T , typename allocator = void>
using kblib::direct_map< Key, T, allocator >::const_reference = const value_type&

Definition at line 135 of file direct_map.h.

◆ const_reverse_iterator

template<typename Key , typename T , typename allocator = void>
using kblib::direct_map< Key, T, allocator >::const_reverse_iterator = std::reverse_iterator<const_iterator>

Definition at line 243 of file direct_map.h.

◆ difference_type

template<typename Key , typename T , typename allocator = void>
using kblib::direct_map< Key, T, allocator >::difference_type = std::ptrdiff_t

Definition at line 132 of file direct_map.h.

◆ iterator

template<typename Key , typename T , typename allocator = void>
using kblib::direct_map< Key, T, allocator >::iterator = iter<value_type>

Definition at line 240 of file direct_map.h.

◆ key_type

template<typename Key , typename T , typename allocator = void>
using kblib::direct_map< Key, T, allocator >::key_type = Key

Definition at line 128 of file direct_map.h.

◆ mapped_type

template<typename Key , typename T , typename allocator = void>
using kblib::direct_map< Key, T, allocator >::mapped_type = T

Definition at line 129 of file direct_map.h.

◆ pointer

template<typename Key , typename T , typename allocator = void>
using kblib::direct_map< Key, T, allocator >::pointer = value_type*

Definition at line 136 of file direct_map.h.

◆ reference

template<typename Key , typename T , typename allocator = void>
using kblib::direct_map< Key, T, allocator >::reference = value_type&

Definition at line 134 of file direct_map.h.

◆ reverse_iterator

template<typename Key , typename T , typename allocator = void>
using kblib::direct_map< Key, T, allocator >::reverse_iterator = std::reverse_iterator<iterator>

Definition at line 242 of file direct_map.h.

◆ size_type

template<typename Key , typename T , typename allocator = void>
using kblib::direct_map< Key, T, allocator >::size_type = std::size_t

Definition at line 131 of file direct_map.h.

◆ value_type

template<typename Key , typename T , typename allocator = void>
using kblib::direct_map< Key, T, allocator >::value_type = std::pair<const Key, T>

Definition at line 130 of file direct_map.h.

Constructor & Destructor Documentation

◆ direct_map() [1/5]

template<typename Key , typename T , typename allocator = void>
constexpr kblib::direct_map< Key, T, allocator >::direct_map ( )
constexprdefaultnoexcept

◆ direct_map() [2/5]

template<typename Key , typename T , typename allocator = void>
template<typename InputIt >
constexpr kblib::direct_map< Key, T, allocator >::direct_map ( InputIt  first,
InputIt  last 
)
inlineconstexpr

Definition at line 248 of file direct_map.h.

◆ direct_map() [3/5]

template<typename Key , typename T , typename allocator = void>
constexpr kblib::direct_map< Key, T, allocator >::direct_map ( const direct_map< Key, T, allocator > &  other)
inlineconstexpr

Definition at line 258 of file direct_map.h.

◆ direct_map() [4/5]

template<typename Key , typename T , typename allocator = void>
constexpr kblib::direct_map< Key, T, allocator >::direct_map ( direct_map< Key, T, allocator > &&  other)
inlineconstexprnoexcept

Definition at line 272 of file direct_map.h.

◆ direct_map() [5/5]

template<typename Key , typename T , typename allocator = void>
constexpr kblib::direct_map< Key, T, allocator >::direct_map ( std::initializer_list< value_type init)
inlineconstexpr

Definition at line 276 of file direct_map.h.

Member Function Documentation

◆ at() [1/4]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::at ( Key  key) && -> T&&
inlineconstexpr

Definition at line 317 of file direct_map.h.

◆ at() [2/4]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::at ( Key  key) & -> T&
inlineconstexpr

Definition at line 310 of file direct_map.h.

◆ at() [3/4]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::at ( Key  key) const && -> const T&&
inlineconstexpr

Definition at line 331 of file direct_map.h.

◆ at() [4/4]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::at ( Key  key) const & -> const T&
inlineconstexpr

Definition at line 324 of file direct_map.h.

◆ begin() [1/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::begin ( ) & -> iterator
inlineconstexprnoexcept

Definition at line 344 of file direct_map.h.

◆ begin() [2/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::begin ( ) const & -> const_iterator
inlineconstexprnoexcept

Definition at line 347 of file direct_map.h.

◆ cbegin()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::cbegin ( ) const & -> const_iterator
inlineconstexprnoexcept

Definition at line 350 of file direct_map.h.

◆ cend()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::cend ( ) const & -> const_iterator
inlineconstexprnoexcept

Definition at line 368 of file direct_map.h.

◆ clear()

template<typename Key , typename T , typename allocator = void>
constexpr auto kblib::direct_map< Key, T, allocator >::clear ( ) -> void
inlineconstexprnoexcept

Definition at line 407 of file direct_map.h.

◆ contains()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::contains ( Key  key) const -> bool
inlineconstexprnoexcept

Definition at line 514 of file direct_map.h.

◆ count()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::count ( Key  key) const -> std::size_t
inlineconstexprnoexcept

Definition at line 517 of file direct_map.h.

◆ crbegin()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::crbegin ( ) const & -> auto
inlineconstexprnoexcept

Definition at line 378 of file direct_map.h.

◆ crend()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::crend ( ) const & -> auto
inlineconstexprnoexcept

Definition at line 388 of file direct_map.h.

◆ empty()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::empty ( ) const & -> bool
inlineconstexprnoexcept

Definition at line 392 of file direct_map.h.

◆ end() [1/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::end ( ) & -> iterator
inlineconstexprnoexcept

Definition at line 362 of file direct_map.h.

◆ end() [2/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::end ( ) const & -> const_iterator
inlineconstexprnoexcept

Definition at line 365 of file direct_map.h.

◆ equal_range() [1/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::equal_range ( Key  key) & -> std::pair<iterator, iterator>
inlineconstexprnoexcept

Definition at line 529 of file direct_map.h.

◆ equal_range() [2/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::equal_range ( Key  key) const & -> std::pair<const_iterator, const_iterator>
inlineconstexprnoexcept

Definition at line 533 of file direct_map.h.

◆ erase() [1/4]

template<typename Key , typename T , typename allocator = void>
constexpr auto kblib::direct_map< Key, T, allocator >::erase ( const_iterator  pos) -> iterator
inlineconstexprnoexcept

Definition at line 478 of file direct_map.h.

◆ erase() [2/4]

template<typename Key , typename T , typename allocator = void>
constexpr auto kblib::direct_map< Key, T, allocator >::erase ( iterator  first,
iterator  last 
) -> iterator
inlineconstexprnoexcept

Definition at line 486 of file direct_map.h.

◆ erase() [3/4]

template<typename Key , typename T , typename allocator = void>
constexpr auto kblib::direct_map< Key, T, allocator >::erase ( iterator  pos) -> iterator
inlineconstexprnoexcept

Definition at line 471 of file direct_map.h.

◆ erase() [4/4]

template<typename Key , typename T , typename allocator = void>
constexpr auto kblib::direct_map< Key, T, allocator >::erase ( Key  key) -> std::size_t
inlineconstexprnoexcept

Definition at line 497 of file direct_map.h.

◆ find() [1/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::find ( Key  key) & -> iterator
inlineconstexprnoexcept

Definition at line 521 of file direct_map.h.

◆ find() [2/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::find ( Key  key) const & -> const_iterator
inlineconstexprnoexcept

Definition at line 524 of file direct_map.h.

◆ index()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD static constexpr auto kblib::direct_map< Key, T, allocator >::index ( Key  key) -> std::ptrdiff_t
inlinestaticconstexprnoexcept

Definition at line 635 of file direct_map.h.

◆ insert() [1/3]

template<typename Key , typename T , typename allocator = void>
constexpr auto kblib::direct_map< Key, T, allocator >::insert ( const value_type value) -> std::pair<iterator, bool>
inlineconstexpr

Definition at line 421 of file direct_map.h.

◆ insert() [2/3]

template<typename Key , typename T , typename allocator = void>
template<typename U >
constexpr auto kblib::direct_map< Key, T, allocator >::insert ( U &&  value) -> enable_if_t<std::is_constructible<value_type, U&&>::value, std::pair<iterator, bool>>
inlineconstexpr

Definition at line 430 of file direct_map.h.

◆ insert() [3/3]

template<typename Key , typename T , typename allocator = void>
constexpr auto kblib::direct_map< Key, T, allocator >::insert ( value_type &&  value) -> std::pair<iterator, bool>
inlineconstexpr

Definition at line 440 of file direct_map.h.

◆ insert_or_assign()

template<typename Key , typename T , typename allocator = void>
template<typename U >
constexpr auto kblib::direct_map< Key, T, allocator >::insert_or_assign ( Key  key,
U &&  value 
) -> std::pair<iterator, bool>
inlineconstexpr

Definition at line 450 of file direct_map.h.

◆ KBLIB_CXX20()

template<typename Key , typename T , typename allocator = void>
kblib::direct_map< Key, T, allocator >::KBLIB_CXX20 ( constexpr  )
inline

Definition at line 282 of file direct_map.h.

◆ lower_bound() [1/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::lower_bound ( Key  key) & -> iterator
inlineconstexprnoexcept

Definition at line 538 of file direct_map.h.

◆ lower_bound() [2/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::lower_bound ( Key  key) const & -> const_iterator
inlineconstexprnoexcept

Definition at line 545 of file direct_map.h.

◆ max()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD static constexpr auto kblib::direct_map< Key, T, allocator >::max ( ) -> Key
inlinestaticconstexprnoexcept

Definition at line 579 of file direct_map.h.

◆ max_size()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD static constexpr auto kblib::direct_map< Key, T, allocator >::max_size ( ) -> std::size_t
inlinestaticconstexprnoexcept

Definition at line 403 of file direct_map.h.

◆ min()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD static constexpr auto kblib::direct_map< Key, T, allocator >::min ( ) -> Key
inlinestaticconstexprnoexcept

Definition at line 576 of file direct_map.h.

◆ operator=() [1/3]

template<typename Key , typename T , typename allocator = void>
constexpr auto kblib::direct_map< Key, T, allocator >::operator= ( const direct_map< Key, T, allocator > &  other) -> direct_map&
inlineconstexpr

Definition at line 284 of file direct_map.h.

◆ operator=() [2/3]

template<typename Key , typename T , typename allocator = void>
constexpr auto kblib::direct_map< Key, T, allocator >::operator= ( direct_map< Key, T, allocator > &&  other) -> direct_map &=default
constexprdefaultnoexcept

◆ operator=() [3/3]

template<typename Key , typename T , typename allocator = void>
constexpr auto kblib::direct_map< Key, T, allocator >::operator= ( std::initializer_list< value_type init) -> direct_map&
inlineconstexpr

Definition at line 301 of file direct_map.h.

◆ operator[]()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr T & kblib::direct_map< Key, T, allocator >::operator[] ( Key  key)
inlineconstexprnoexcept

Definition at line 339 of file direct_map.h.

◆ rbegin() [1/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::rbegin ( ) & -> auto
inlineconstexprnoexcept

Definition at line 372 of file direct_map.h.

◆ rbegin() [2/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::rbegin ( ) const & -> auto
inlineconstexprnoexcept

Definition at line 375 of file direct_map.h.

◆ rend() [1/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::rend ( ) & -> auto
inlineconstexprnoexcept

Definition at line 382 of file direct_map.h.

◆ rend() [2/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::rend ( ) const & -> auto
inlineconstexprnoexcept

Definition at line 385 of file direct_map.h.

◆ size()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::size ( ) const & -> std::size_t
inlineconstexprnoexcept

Definition at line 396 of file direct_map.h.

◆ ssize()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::ssize ( ) const & -> std::ptrdiff_t
inlineconstexprnoexcept

Definition at line 399 of file direct_map.h.

◆ swap()

template<typename Key , typename T , typename allocator = void>
constexpr auto kblib::direct_map< Key, T, allocator >::swap ( direct_map< Key, T, allocator > &  other) -> void
inlineconstexprnoexcept

Definition at line 508 of file direct_map.h.

◆ to_key()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD static constexpr auto kblib::direct_map< Key, T, allocator >::to_key ( std::ptrdiff_t  i) -> Key
inlinestaticconstexprnoexcept

Definition at line 643 of file direct_map.h.

◆ try_emplace()

template<typename Key , typename T , typename allocator = void>
template<typename... Args>
constexpr auto kblib::direct_map< Key, T, allocator >::try_emplace ( Key  key,
Args &&...  args 
) -> std::pair<iterator, bool>
inlineconstexpr

Definition at line 461 of file direct_map.h.

◆ uindex()

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD static constexpr auto kblib::direct_map< Key, T, allocator >::uindex ( Key  key) -> std::size_t
inlinestaticconstexprnoexcept

Definition at line 639 of file direct_map.h.

◆ upper_bound() [1/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::upper_bound ( Key  key) & -> iterator
inlineconstexprnoexcept

Definition at line 554 of file direct_map.h.

◆ upper_bound() [2/2]

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD constexpr auto kblib::direct_map< Key, T, allocator >::upper_bound ( Key  key) const & -> const_iterator
inlineconstexprnoexcept

Definition at line 564 of file direct_map.h.

Friends And Related Function Documentation

◆ operator!=

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD friend constexpr auto operator!= ( const direct_map< Key, T, allocator > &  l,
const direct_map< Key, T, allocator > &  r 
) -> bool
friend

Definition at line 602 of file direct_map.h.

◆ operator<

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD friend constexpr auto operator< ( const direct_map< Key, T, allocator > &  l,
const direct_map< Key, T, allocator > &  r 
) -> bool
friend

Definition at line 609 of file direct_map.h.

◆ operator<=

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD friend constexpr auto operator<= ( const direct_map< Key, T, allocator > &  l,
const direct_map< Key, T, allocator > &  r 
) -> bool
friend

Definition at line 622 of file direct_map.h.

◆ operator==

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD friend constexpr auto operator== ( const direct_map< Key, T, allocator > &  l,
const direct_map< Key, T, allocator > &  r 
) -> bool
friend

Definition at line 583 of file direct_map.h.

◆ operator>

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD friend constexpr auto operator> ( const direct_map< Key, T, allocator > &  l,
const direct_map< Key, T, allocator > &  r 
) -> bool
friend

Definition at line 616 of file direct_map.h.

◆ operator>=

template<typename Key , typename T , typename allocator = void>
KBLIB_NODISCARD friend constexpr auto operator>= ( const direct_map< Key, T, allocator > &  l,
const direct_map< Key, T, allocator > &  r 
) -> bool
friend

Definition at line 628 of file direct_map.h.


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