kblib 0.2.3
General utilities library for modern C++
trie.cpp
Go to the documentation of this file.
1#include "kblib/trie.h"
2
3#if KBLIB_USE_CXX17
4
5# include "catch.hpp"
6
7# include <string>
8
9TEST_CASE("trie") {
11 static_assert(std::is_same<kblib::indexer_extractor<std::string>,
13 "default_extractor<std::string> is indexer");
16 "std::string is a random access container");
17 static_assert(
18 std::is_same<typename kblib::indexer_extractor<std::string>::value_type,
19 char>::value,
20 "value_type of std::string is char");
23}
24
25#endif
constexpr auto test() noexcept -> bool
Definition: main.cpp:68
typename std::conditional< extractor_policy_for< Container >::value==extractor_policy::random_access, indexer_extractor< Container >, iterator_extractor< Container > >::type default_extractor_t
Definition: trie.h:88
#define KBLIB_UNUSED
This internal macro is used to provide a fallback for [[maybe_unused]] in C++14.
Definition: tdecl.h:130
TEST_CASE("trie")
Definition: trie.cpp:9
Provides the trie data structure.