kblib 0.2.3
General utilities library for modern C++
sort.cpp File Reference
#include "catch.hpp"
#include "kblib/sort.h"
#include "kblib/stats.h"
#include "kblib/stringops.h"
#include <iomanip>
#include <iostream>
#include <map>
Include dependency graph for sort.cpp:

Go to the source code of this file.


#define TIME(...)   time_and_log(__LINE__, __VA_ARGS__)


template<typename T , std::size_t N>
constexpr auto sort_test (kblib::trivial_array< T, N > val) noexcept -> bool
 TEST_CASE ("sort")
auto linear (std::size_t i)
 TEST_CASE ("insertion sort performance")
 TEST_CASE ("byte extraction")

Macro Definition Documentation


#define TIME (   ...)    time_and_log(__LINE__, __VA_ARGS__)

Function Documentation

◆ linear()

auto linear ( std::size_t  i)

Definition at line 108 of file sort.cpp.

◆ sort_test()

template<typename T , std::size_t N>
constexpr auto sort_test ( kblib::trivial_array< T, N >  val) -> bool

Definition at line 12 of file sort.cpp.

◆ TEST_CASE() [1/3]

TEST_CASE ( "byte extraction"  )

Definition at line 251 of file sort.cpp.

◆ TEST_CASE() [2/3]

TEST_CASE ( "insertion sort performance"  )

Definition at line 110 of file sort.cpp.

◆ TEST_CASE() [3/3]

TEST_CASE ( "sort"  )

Definition at line 19 of file sort.cpp.