C++ Metaprogramming: Efficient Compile-Time Algorithms (Advanced C++ Programming)

ANT

$5.00
Format
Digital edition
PDFEPUB
Works on phone, tablet and computer Instant access after checkout Personal-use digital license
About this edition

• 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.

Published date September 4, 2026
Author David Spuler

Instant digital delivery after purchase.

Download link available immediately after checkout.
In stock
Quantity
Secure checkout — encrypted end to end Free exchange or return within 30 days if the product is defective. Digital formats available instantly
Readers also enjoyed

Discover another great read to add to your digital library.

$5.00

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

FormatEPUB, PDF
Pages296
LanguageEnglish
ISBN-13979-8171796518

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.

Reviews

5★84%4★11%3★3%2★1%1★1%
See all reviews

Customers also downloaded