C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
c++20/chapter-1.cpp File Reference

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.
 

Detailed Description

Test application for Chapter 1 (C++20).

Author
Matt Bisson

Definition in file c++20/chapter-1.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 68 of file c++20/chapter-1.cpp.