C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Test application for Chapter 1 (C++20). More...
#include <cstdint>
#include <stdio.h>
Go to the source code of this file.
Namespaces | |
namespace | chapter1 |
Solutions for Chapter 1. | |
namespace | chapter1::cpp20 |
Solutions for Chapter 1 (C++20). | |
namespace | anonymous_namespace{chapter-1.cpp} |
Functions | |
constexpr uint32_t | chapter1::cpp20::binary_func (uint64_t const N) |
A runtime binary to decimal number translation. | |
consteval uint32_t | chapter1::cpp20::binary (uint64_t const N) |
Prepend higher bits to lowest bit. | |
int | main () |
Variables | |
struct { | |
uint32_t anonymous_namespace{chapter-1.cpp}::expected | |
uint32_t anonymous_namespace{chapter-1.cpp}::got | |
} | anonymous_namespace{chapter-1.cpp}::run [] |
the container for test input and output. | |
Test application for Chapter 1 (C++20).
Definition in file c++20/chapter-1.cpp.
int main | ( | ) |
Definition at line 68 of file c++20/chapter-1.cpp.