kblib 0.2.3
General utilities library for modern C++
|
#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(std::is_nothrow_move_constructible< value_type >::value) |
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(std::is_nothrow_move_constructible< T >::value) -> direct_map & |
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 -> reverse_iterator |
KBLIB_NODISCARD constexpr auto | rbegin () const &noexcept -> const_reverse_iterator |
KBLIB_NODISCARD constexpr auto | crbegin () const &noexcept -> const_reverse_iterator |
KBLIB_NODISCARD constexpr auto | rend () &noexcept -> reverse_iterator |
KBLIB_NODISCARD constexpr auto | rend () const &noexcept -> const_reverse_iterator |
KBLIB_NODISCARD constexpr auto | crend () const &noexcept -> const_reverse_iterator |
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) -> return_assert_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(std::is_nothrow_move_constructible< value_type >::value and fakestd::is_nothrow_swappable< T >::value) -> 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 |
Definition at line 705 of file direct_map.h.
using kblib::direct_map< Key, T, void >::const_iterator = iter<const value_type> |
Definition at line 819 of file direct_map.h.
using kblib::direct_map< Key, T, void >::const_pointer = const value_type* |
Definition at line 717 of file direct_map.h.
using kblib::direct_map< Key, T, void >::const_reference = const value_type& |
Definition at line 715 of file direct_map.h.
using kblib::direct_map< Key, T, void >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 821 of file direct_map.h.
using kblib::direct_map< Key, T, void >::difference_type = std::ptrdiff_t |
Definition at line 712 of file direct_map.h.
using kblib::direct_map< Key, T, void >::iterator = iter<value_type> |
Definition at line 818 of file direct_map.h.
using kblib::direct_map< Key, T, void >::key_type = Key |
Definition at line 708 of file direct_map.h.
using kblib::direct_map< Key, T, void >::mapped_type = T |
Definition at line 709 of file direct_map.h.
using kblib::direct_map< Key, T, void >::pointer = value_type* |
Definition at line 716 of file direct_map.h.
using kblib::direct_map< Key, T, void >::reference = value_type& |
Definition at line 714 of file direct_map.h.
using kblib::direct_map< Key, T, void >::reverse_iterator = std::reverse_iterator<iterator> |
Definition at line 820 of file direct_map.h.
using kblib::direct_map< Key, T, void >::size_type = std::size_t |
Definition at line 711 of file direct_map.h.
using kblib::direct_map< Key, T, void >::value_type = std::pair<const Key, T> |
Definition at line 710 of file direct_map.h.
|
constexprdefaultnoexcept |
|
inlineconstexpr |
Definition at line 826 of file direct_map.h.
|
inlineconstexpr |
Definition at line 833 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 844 of file direct_map.h.
|
inlineconstexpr |
Definition at line 856 of file direct_map.h.
|
inlineconstexpr |
Definition at line 909 of file direct_map.h.
|
inlineconstexpr |
Definition at line 902 of file direct_map.h.
|
inlineconstexpr |
Definition at line 923 of file direct_map.h.
|
inlineconstexpr |
Definition at line 916 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 936 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 939 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 942 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 960 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1003 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1117 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1120 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 971 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 983 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 988 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 954 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 957 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1132 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1136 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1068 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1074 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1063 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1083 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1124 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1127 of file direct_map.h.
|
inlinestaticconstexprnoexcept |
Definition at line 1238 of file direct_map.h.
|
inlineconstexpr |
Definition at line 1013 of file direct_map.h.
|
inlineconstexpr |
Definition at line 1022 of file direct_map.h.
|
inlineconstexpr |
Definition at line 1032 of file direct_map.h.
|
inlineconstexpr |
Definition at line 1042 of file direct_map.h.
|
inline |
Definition at line 861 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1141 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1148 of file direct_map.h.
|
inlinestaticconstexprnoexcept |
Definition at line 1182 of file direct_map.h.
|
inlinestaticconstexprnoexcept |
Definition at line 999 of file direct_map.h.
|
inlinestaticconstexprnoexcept |
Definition at line 1179 of file direct_map.h.
|
inlineconstexpr |
Definition at line 863 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 878 of file direct_map.h.
|
inlineconstexpr |
Definition at line 893 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 931 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 964 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 967 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 976 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 979 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 992 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 995 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1092 of file direct_map.h.
|
inlinestaticconstexprnoexcept |
Definition at line 1246 of file direct_map.h.
|
inlineconstexpr |
Definition at line 1053 of file direct_map.h.
|
inlinestaticconstexprnoexcept |
Definition at line 1242 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1157 of file direct_map.h.
|
inlineconstexprnoexcept |
Definition at line 1167 of file direct_map.h.
|
friend |
Definition at line 1205 of file direct_map.h.
|
friend |
Definition at line 1212 of file direct_map.h.
|
friend |
Definition at line 1225 of file direct_map.h.
|
friend |
Definition at line 1186 of file direct_map.h.
|
friend |
Definition at line 1219 of file direct_map.h.
|
friend |
Definition at line 1231 of file direct_map.h.