libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
constexpr_map.cpp File Reference
#include "stdafx.h"
#include <boost/test/included/unit_test.hpp>
#include "frozen/unordered_map.h"
Include dependency graph for constexpr_map.cpp:

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   libjmmcg_tests
 

Typedefs

using mapping_t = frozen::unordered_map< std::int16_t, char, 5 >
 

Functions

constexpr char convert (std::int16_t v) noexcept(true)
 
 BOOST_AUTO_TEST_CASE (lookup)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   libjmmcg_tests

Definition at line 21 of file constexpr_map.cpp.

Typedef Documentation

◆ mapping_t

typedef frozen::unordered_map< std::int16_t, char, 5 > mapping_t

Definition at line 26 of file constexpr_map.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( lookup  )

Definition at line 47 of file constexpr_map.cpp.

References convert().

◆ convert()

constexpr char convert ( std::int16_t  v)
inlineconstexprnoexcept

Definition at line 36 of file constexpr_map.cpp.

Referenced by BOOST_AUTO_TEST_CASE().