JS8Call-Improved master
Loading...
Searching...
No Matches
pimpl_h.h File Reference

An implementation-hiding utility class template leveraging the Pimpl idiom. More...

#include <memory>
Include dependency graph for pimpl_h.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  pimpl< T >
 Opaque implementation manager utilizing perfect forwarding of constructors. More...

Detailed Description

An implementation-hiding utility class template leveraging the Pimpl idiom.

This file provides a generic wrapper around a modern pointer structure to abstract compilation dependencies via a unique opaque object representation.

Note
Out-of-line member definitions and explicit destructor declarations must accompany compilation firewall boundaries to prevent template parsing of incomplete types.
See also
Herb Sutter's GotW #101 (http://herbsutter.com/gotw/_101/) for design mechanics.