Files
developer-roadmap/roadmaps/cpp/content/dynamic-typing@i0EAFEUB-F0wBJWOtrl1A.md
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

881 B

Dynamic Typing

While C++ is fundamentally a statically-typed language where data types are checked at compile time, it provides mechanisms to achieve a degree of dynamic typing. This involves determining the data types of variables during runtime, primarily through the use of void* pointers, which can point to any data type (requiring explicit casting), and the std::any class (introduced in C++17), a type-safe container capable of holding values of any type. Both approaches enable flexibility but require careful consideration due to potential runtime overhead and type-related errors.

Visit the following resources to learn more: