kblib 0.2.3
General utilities library for modern C++
kblib::default_extract< KeyElem[], void_if_t< std::is_integral_v< KeyElem > > > Struct Template Reference

#include <kblib/trie.h>

Public Types

using value_type = KeyElem
 

Static Public Member Functions

template<std::size_t Size>
static constexpr auto begin (KeyElem(&key)[Size]) noexcept(noexcept(std::begin(key))) -> decltype(auto)
 
template<std::size_t Size>
static constexpr auto end (KeyElem(&key)[Size]) noexcept(noexcept(std::end(key))) -> decltype(auto)
 
template<std::size_t Size>
static constexpr auto index (KeyElem(&key)[Size], 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 KeyElem>
struct kblib::default_extract< KeyElem[], void_if_t< std::is_integral_v< KeyElem > > >

Definition at line 169 of file trie.h.

Member Typedef Documentation

◆ value_type

template<typename KeyElem >
using kblib::default_extract< KeyElem[], void_if_t< std::is_integral_v< KeyElem > > >::value_type = KeyElem

Definition at line 170 of file trie.h.

Member Function Documentation

◆ begin()

template<typename KeyElem >
template<std::size_t Size>
static constexpr auto kblib::default_extract< KeyElem[], void_if_t< std::is_integral_v< KeyElem > > >::begin ( KeyElem(&)  key[Size]) -> decltype(auto)
inlinestaticconstexprnoexcept

Definition at line 180 of file trie.h.

◆ end()

template<typename KeyElem >
template<std::size_t Size>
static constexpr auto kblib::default_extract< KeyElem[], void_if_t< std::is_integral_v< KeyElem > > >::end ( KeyElem(&)  key[Size]) -> decltype(auto)
inlinestaticconstexprnoexcept

Definition at line 185 of file trie.h.

◆ index()

template<typename KeyElem >
template<std::size_t Size>
static constexpr auto kblib::default_extract< KeyElem[], void_if_t< std::is_integral_v< KeyElem > > >::index ( KeyElem(&)  key[Size],
std::size_t  idx 
) -> decltype(auto)
inlinestaticconstexprnoexcept

Definition at line 190 of file trie.h.

Member Data Documentation

◆ key_cardinality

template<typename KeyElem >
KBLIB_CONSTANT_M std::size_t kblib::default_extract< KeyElem[], void_if_t< std::is_integral_v< KeyElem > > >::key_cardinality = static_cast<value_type>(max) + std::size_t{1}

Definition at line 174 of file trie.h.


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