add Chapter01 examples

This commit is contained in:
Amar Mahmutbegovic
2024-04-27 20:43:40 +02:00
parent fb4983465f
commit de6d74e093
12 changed files with 435 additions and 0 deletions

19
Chapter01/README.md Normal file
View File

@@ -0,0 +1,19 @@
# Chapter01
This folder contains examples in C and C++ from first chapter.
These are standalone examples that can be compiled by most compilers for x86_64 architecture.
You can explore the examples online in [Compiler Explorer](https://godbolt.org/).
The folder contains following examples:
- ring_buffer.c
- ring_buffer_type_erasure.c
- ring_buffer_compile_time_generic.c
- ring_buffer.cpp
- compile_time_const.c
- compile_time_const.cpp
- compile_time_square_func.cpp
- undefined_behavior.cpp
- bloat.cpp
- rtti.cpp
- exceptions.cpp