Skip to content

porto703/pImpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pImpl

Basic implementation of the pImpl (Pointer to Implementation) idiom.

The SimpleClassPimpl class shows a basic and straightforward implementation of the pImpl Idiom.

It has the 8 basic elements that a pImpl class should contain:

  1. Constructor of the visble class
  2. Destructor of the visible class
  3. Copy Constructor
  4. Copy Assignment
  5. Move Constructor
  6. Move Assignment
  7. Forward declaration of the Impl (Implementation) class
  8. Smart pointer to the Impl class (pimpl)

The Impl class is defined in the simpleclasspimpl.cpp file

About

Basic implementation of the pImpl (Pointer to Implementation) idiom.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages