kblib 0.2.3
General utilities library for modern C++
kblib::default_extract< Key, void_if_t< is_linear_container_v< Key > > > Struct Template Reference

#include <kblib/trie.h>

Public Types

using value_type = typename Key::value_type
 

Static Public Member Functions

static constexpr auto begin (Key &key) noexcept(noexcept(key.begin())) -> decltype(auto)
 
static constexpr auto end (Key &key) noexcept(noexcept(key.end())) -> decltype(auto)
 
static constexpr auto index (Key &key, std::size_t idx) noexcept(noexcept(key[idx])) -> decltype(auto)
 

Public Attributes

KBLIB_CONSTANT_M std::size_t key_cardinality = static_cast<value_type>(max) + std::size_t{1}
 

Detailed Description

template<typename Key>
struct kblib::default_extract< Key, void_if_t< is_linear_container_v< Key > > >

Definition at line 143 of file trie.h.

Member Typedef Documentation

◆ value_type

template<typename Key >
using kblib::default_extract< Key, void_if_t< is_linear_container_v< Key > > >::value_type = typename Key::value_type

Definition at line 144 of file trie.h.

Member Function Documentation

◆ begin()

template<typename Key >
static constexpr auto kblib::default_extract< Key, void_if_t< is_linear_container_v< Key > > >::begin ( Key &  key) -> decltype(auto)
inlinestaticconstexprnoexcept

Definition at line 153 of file trie.h.

◆ end()

template<typename Key >
static constexpr auto kblib::default_extract< Key, void_if_t< is_linear_container_v< Key > > >::end ( Key &  key) -> decltype(auto)
inlinestaticconstexprnoexcept

Definition at line 157 of file trie.h.

◆ index()

template<typename Key >
static constexpr auto kblib::default_extract< Key, void_if_t< is_linear_container_v< Key > > >::index ( Key &  key,
std::size_t  idx 
) -> decltype(auto)
inlinestaticconstexprnoexcept

Definition at line 161 of file trie.h.

Member Data Documentation

◆ key_cardinality

template<typename Key >
KBLIB_CONSTANT_M std::size_t kblib::default_extract< Key, void_if_t< is_linear_container_v< Key > > >::key_cardinality = static_cast<value_type>(max) + std::size_t{1}

Definition at line 148 of file trie.h.


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