* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
8 lines
834 B
Markdown
8 lines
834 B
Markdown
# Pimpl Idiom
|
|
|
|
The Pimpl (Pointer to Implementation) idiom is a C++ technique used to hide the implementation details of a class. This is achieved by declaring a private implementation class and holding a pointer to it within the main class. The public interface remains clean, and compile-time dependencies are significantly reduced. This promotes better code organization, reduces recompilation times, and improves binary compatibility.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@Pointer To Implementation(PIMPL) Idiom By Using Smart Pointer in C++](https://cengizhanvarli.medium.com/pointer-to-implementation-pimpl-idiom-by-using-smart-pointer-in-c-07dcd535d0ce)
|
|
- [@video@Classes Part 30 - pIMPL (pointer to implementation) - More Stable APIs| Modern Cpp Series Ep. 67](https://www.youtube.com/watch?v=3mFpXNEB_AA) |