Tagged articles

compile-time polymorphism

3 articles · Page 1 of 1
Deepin Linux
Deepin Linux
Jun 26, 2026 · Fundamentals

Mastering C++ vtable internals: Demystifying polymorphism

This article explains how C++ implements polymorphism through virtual tables and virtual pointers, walks through their generation, memory layout, single‑ and multiple‑inheritance scenarios, distinguishes compile‑time and runtime polymorphism, and shows practical guidelines for when to use or avoid polymorphic designs.

C++compile-time polymorphisminheritance
0 likes · 28 min read
Mastering C++ vtable internals: Demystifying polymorphism
Deepin Linux
Deepin Linux
Jun 24, 2026 · Fundamentals

Master Compile‑Time Polymorphism: Ditch Obscure SFINAE with C++20 Concepts

The article explains compile‑time polymorphism in C++, shows why traditional SFINAE is hard to read and debug, and demonstrates how C++20 Concepts provide clearer syntax, precise errors, and better multi‑condition support, backed by side‑by‑side code examples and a detailed feature comparison.

C++ConceptsMetaprogramming
0 likes · 12 min read
Master Compile‑Time Polymorphism: Ditch Obscure SFINAE with C++20 Concepts
Tencent Cloud Developer
Tencent Cloud Developer
Jul 18, 2022 · Fundamentals

Compile-Time Polymorphism in C++: Implementation with folly::poly and dyno

The article explains how compile‑time polymorphism in modern C++—using libraries like folly::poly and dyno—can replace traditional virtual‑table based runtime polymorphism by employing small‑object optimization, compile‑time generated VTables, and type‑erased wrappers, delivering near‑virtual performance without inheritance or heap allocation.

C++compile-time polymorphismdyno
0 likes · 20 min read
Compile-Time Polymorphism in C++: Implementation with folly::poly and dyno