The Pointer to Implementation (pImpl) idiom in C++

Описание к видео The Pointer to Implementation (pImpl) idiom in C++

The Pointer to Implementation (pImpl) idiom in C++ is one technique that allows you to hide implementation details from an interface.

NOTICE: Perhaps the most important benefit of pImpl was not given the appropriate focus. I consider as its most important advantage (and mentioned first in the video) to be that changes in the implementation do not require components that depend on the interface to be recompiled.
This is very important when distributing precompiled libraries since your users' software will be binary compatible with your different deliveries regardless of the changes you do as long as the public interface is not modified. This allows you to update your libraries in a system without requiring your users to recompile their programs. In other words, your internal changes are completely transparent to the users/customers.

You can find a written form of the tutorial and all the code on GitHub: https://github.com/platisd/cpp-pimpl-...
Please like, subscribe, comment and share the video to help me produce more content like this! :)

Want to buy me a coffee so I can keep making free videos? Then please do so here: https://buymeacoff.ee/platisd

Комментарии

Информация по комментариям в разработке