C++ Metaprogramming: Efficient Compile-Time Algorithms (Advanced C++ Programming)
ANT
• Instant access to your digital edition.
• Read anytime, anywhere, on your favorite device.
• No shipping — your book is delivered digitally.
• Simple, secure access after purchase.
Instant digital delivery after purchase.
Discover another great read to add to your digital library.
Description
C++ Metaprogramming: 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 computation Zero runtime overhead Template generic algorithms Perfect hash metaprogramming Compile-time data structures
Table of Contents:
Part I: 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 II: 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 III: 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 IV: Metaprogramming in C
20. Old-Style Perfect Hashing in C
21. Manual Inlining & Preprocessor Macros
22. Old-Style C/C++ Source Code Generation
Part V: Debugging Metaprogramming
23. Undefined Behavior in Metaprogramming
24. Preprocessor Macro Bugs
25. Code Bloat Mitigation
26. Slow Builds
27. Portability & Supportability
Part VI: Compile-Time Primitives
28. Optimizers
29. Compiler Hints
30. Zero Runtime Cost Operations
31. Inline Functions
32. Closures, Lambdas and Functors
33. Switch Multiway Branch Optimizations
34. Computed Goto Jump Tables
Specifications
Frequently asked
Do I need an account to download?
No. After purchase, you can access your ebook directly from the order confirmation or download page.
What if a copy arrives damaged?
Contact us and we’ll help you access the file or provide a replacement download if needed.