C++ Efficient Compile-Time Algorithms is for C and C++ software engineers that want maximum efficiency via zero-cost compile-time execution of algorithms.
Highlights:Compile-time computationZero runtime overheadTemplate generic algorithmsPerfect hash metaprogrammingCompile-time data structures Table of Part Compile-Time Computation 1. Metaprogramming Introduction 2. Constant Specifiers 3. Constant Expression Evaluation 4. Compile-Time Branch Metaprogramming 5. Template Building Blocks 6. Type Traits 7. Static Reflection (C++26) 8. Legacy Recursive Template Metaprogramming 9. Runtime Metaprogramming
Part Data Structure Metaprogramming 10. Lookup Table Precomputation 11. Data Structure Unrolling 12. Perfect Hashing Theory 13. Perfect Hash Metaprogramming 14. Prefilled Fixed-Size Data Structures
Part Algorithm Metaprogramming 15. Perfect Compute Theory 16. Perfect Compute Examples 17. Brute-Force Perfect Compute 18. Text File Embedding 19. LLM Kernel Code Synthesis
Part Metaprogramming in C 20. Old-Style Perfect Hashing in C 21. Manual Inlining & Preprocessor Macros 22. Old-Style C/C++ Source Code Generation