kblib 0.2.3
General utilities library for modern C++
main.cpp File Reference
#include "kblib/containers.h"
#include "kblib/icu.h"
#include "kblib/kblib.h"
#include <array>
#include <iostream>
#include <list>
#include <map>
#include <set>
#include <string_view>
#include "catch.hpp"
Include dependency graph for main.cpp:

Go to the source code of this file.

Classes

struct  bad_iterator< depth >
 
struct  bad_iterator< 0 >
 

Functions

template<class T >
constexpr auto type_name_f () -> std::string_view
 
constexpr auto test () noexcept -> bool
 
auto test (std::streamsize s) -> void
 
void test_trie ()
 
 TEST_CASE ("main")
 

Variables

template<typename C >
constexpr const char type_name [] = "unknown"
 
template<>
KBLIB_UNUSED constexpr const char type_name< char > [] = "char"
 
template<>
KBLIB_UNUSED constexpr const char type_name< unsigned char > [] = "unsigned char"
 
template<>
KBLIB_UNUSED constexpr const char type_name< signed char > [] = "signed char"
 

Function Documentation

◆ test() [1/2]

constexpr auto test ( ) -> bool
constexprnoexcept

Definition at line 68 of file main.cpp.

◆ test() [2/2]

auto test ( std::streamsize  s) -> void

Definition at line 78 of file main.cpp.

◆ TEST_CASE()

TEST_CASE ( "main"  )

Definition at line 81 of file main.cpp.

◆ test_trie()

void test_trie ( )

◆ type_name_f()

template<class T >
constexpr auto type_name_f ( ) -> std::string_view
constexpr

Definition at line 16 of file main.cpp.

Variable Documentation

◆ type_name

template<typename C >
constexpr const char type_name[] = "unknown"
constexpr

Definition at line 45 of file main.cpp.

◆ type_name< char >

template<>
KBLIB_UNUSED constexpr const char type_name< char >[] = "char"
constexpr

Definition at line 48 of file main.cpp.

◆ type_name< signed char >

template<>
KBLIB_UNUSED constexpr const char type_name< signed char >[] = "signed char"
constexpr

Definition at line 52 of file main.cpp.

◆ type_name< unsigned char >

template<>
KBLIB_UNUSED constexpr const char type_name< unsigned char >[] = "unsigned char"
constexpr

Definition at line 50 of file main.cpp.