diff options
| author | Christoph Berg <myon@debian.org> | 2026-04-07 19:02:45 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-04-07 19:02:45 +0200 |
| commit | f647d78463c1250ce9c99af664615fafccf5e959 (patch) | |
| tree | 5b00428cef68aef1c9d407e2d4535687422419b6 /pimpl_h.hpp | |
| parent | 0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff) | |
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'pimpl_h.hpp')
| -rw-r--r--[-rwxr-xr-x] | pimpl_h.hpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/pimpl_h.hpp b/pimpl_h.hpp index fae3a560..b2027615 100755..100644 --- a/pimpl_h.hpp +++ b/pimpl_h.hpp @@ -1,29 +1,29 @@ -#ifndef PIMPL_H_HPP_
-#define PIMPL_H_HPP_
-
-#include <memory>
-
-//
-// opaque implementation type with perfect forwarding of constructor arguments
-//
-// see pimpl_impl.hpp for the out-of-line definitions of the members and lifetime management
-//
-// thanks to Herb Sutter (http://herbsutter.com/gotw/_101/) for the implementation
-//
-template<typename T>
-class pimpl
-{
-private:
- std::unique_ptr<T> m_;
-
-public:
- pimpl ();
- template<typename ...Args> pimpl (Args&& ...);
- ~pimpl ();
- T * operator -> ();
- T const * operator -> () const;
- T& operator * ();
- T const& operator * () const;
-};
-
-#endif
+#ifndef PIMPL_H_HPP_ +#define PIMPL_H_HPP_ + +#include <memory> + +// +// opaque implementation type with perfect forwarding of constructor arguments +// +// see pimpl_impl.hpp for the out-of-line definitions of the members and lifetime management +// +// thanks to Herb Sutter (http://herbsutter.com/gotw/_101/) for the implementation +// +template<typename T> +class pimpl +{ +private: + std::unique_ptr<T> m_; + +public: + pimpl (); + template<typename ...Args> pimpl (Args&& ...); + ~pimpl (); + T * operator -> (); + T const * operator -> () const; + T& operator * (); + T const& operator * () const; +}; + +#endif |
