diff options
| author | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
| commit | 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (patch) | |
| tree | fbfdfe6bcb0a8a114be2480dac53d88c977e4869 /pimpl_h.hpp | |
| parent | 4320ce238aae1fe87fc9f379cdd816e9317885fa (diff) | |
New upstream version 2.7.0~rc8+repackupstream/2.7.0_rc8+repack
Diffstat (limited to 'pimpl_h.hpp')
| -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 --- 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 |
