Template Class pimpl

Class Documentation

template<typename TImpl>
class pimpl

Super-simple templated implementation of the PIMPL idiom. Does not exist in boost, and the boost candidate I found had subtle memory issues when optimizations were on.

Template Parameters:

TImpl – The type of the implementation you wish to hide.

Public Functions

template<typename ...Args>
inline explicit pimpl(Args&&... args)
virtual ~pimpl(void) = default

Public Members

std::unique_ptr<TImpl> impl