kblib 0.2.3
General utilities library for modern C++
kblib::indexer_extractor< Container > Struct Template Reference

#include <kblib/trie.h>

Inheritance diagram for kblib::indexer_extractor< Container >:
Collaboration diagram for kblib::indexer_extractor< Container >:

Public Types

using value_type = typename std::remove_cv< typename std::remove_reference< decltype(std::declval< Container & >()[0])>::type >::type
 
- Public Types inherited from kblib::iterator_extractor< Container >
using value_type = typename std::remove_cv< typename std::remove_reference< decltype(*begin(std::declval< Container & >()))>::type >::type
 

Static Public Member Functions

template<typename index_type >
static constexpr auto subscript (Container &&c, index_type index) noexcept(noexcept(c[index])) -> decltype(auto)
 

Detailed Description

template<typename Container>
struct kblib::indexer_extractor< Container >

Definition at line 60 of file trie.h.

Member Typedef Documentation

◆ value_type

template<typename Container >
using kblib::indexer_extractor< Container >::value_type = typename std::remove_cv<typename std::remove_reference<decltype( std::declval<Container&>()[0])>::type>::type

Definition at line 61 of file trie.h.

Member Function Documentation

◆ subscript()

template<typename Container >
template<typename index_type >
static constexpr auto kblib::indexer_extractor< Container >::subscript ( Container &&  c,
index_type  index 
) -> decltype(auto)
inlinestaticconstexprnoexcept

Definition at line 66 of file trie.h.


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