kblib 0.2.3
General utilities library for modern C++
|
#include <kblib/bits.h>
Classes | |
class | iterator_t |
struct | key_type |
Public Types | |
using | value_type = Value |
using | mapped_type = Value |
using | size_type = uint_smallest_t< key_range > |
using | difference_type = int_smallest_t< key_range > |
using | reference = value_type & |
using | const_reference = const value_type & |
using | pointer = value_type * |
using | const_pointer = const value_type * |
using | iterator = iterator_t< Value > |
using | const_iterator = iterator_t< const Value > |
using | reverse_iterator = std::reverse_iterator< iterator > |
using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
using | bitset_type = std::bitset< bits_of< Key > > |
Public Member Functions | |
auto | at (key_type key) const noexcept(false) -> const_reference |
auto | at (key_type key) noexcept(false) -> reference |
auto | find_deep (key_type key, size_type depth=-1) const noexcept(false) -> const_reference |
auto | find_deep (key_type key, size_type depth=-1) noexcept(false) -> reference |
auto | empty () const noexcept -> bool |
template<typename... Ts> | |
auto | emplace (key_type key, Ts &&... args) -> bool |
auto | insert (key_type key, const value_type &value) -> bool |
auto | insert (key_type key, value_type &&value) -> bool |
auto | insert_or_assign (key_type key, const value_type &value) -> reference |
auto | insert_or_assign (key_type key, value_type &&value) -> reference |
bool | erase (key_type key) |
bool | prune (key_type prefix) |
auto | clear () -> void |
auto | size () const noexcept -> size_type |
auto | memory_use () const noexcept -> std::size_t |
auto | shrink_to_fit () -> void |
using kblib::compact_bit_trie< Key, key_range, Value >::bitset_type = std::bitset<bits_of<Key> > |
using kblib::compact_bit_trie< Key, key_range, Value >::const_iterator = iterator_t<const Value> |
using kblib::compact_bit_trie< Key, key_range, Value >::const_pointer = const value_type* |
using kblib::compact_bit_trie< Key, key_range, Value >::const_reference = const value_type& |
using kblib::compact_bit_trie< Key, key_range, Value >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
using kblib::compact_bit_trie< Key, key_range, Value >::difference_type = int_smallest_t<key_range> |
using kblib::compact_bit_trie< Key, key_range, Value >::iterator = iterator_t<Value> |
using kblib::compact_bit_trie< Key, key_range, Value >::mapped_type = Value |
using kblib::compact_bit_trie< Key, key_range, Value >::pointer = value_type* |
using kblib::compact_bit_trie< Key, key_range, Value >::reference = value_type& |
using kblib::compact_bit_trie< Key, key_range, Value >::reverse_iterator = std::reverse_iterator<iterator> |
using kblib::compact_bit_trie< Key, key_range, Value >::size_type = uint_smallest_t<key_range> |
using kblib::compact_bit_trie< Key, key_range, Value >::value_type = Value |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
bool kblib::compact_bit_trie< Key, key_range, Value >::erase | ( | key_type | key | ) |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
bool kblib::compact_bit_trie< Key, key_range, Value >::prune | ( | key_type | prefix | ) |
|
inline |
|
inlinenoexcept |