David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
56e9725
Branches
Tags
c++11
main
start
testcode.git
product
main_helper.hpp
Add .clang-format
dblume
commited
56e9725
at 2023-08-12 23:24:26
main_helper.hpp
Blame
History
Raw
#pragma once #include <memory> int main_helper_fn(); int main_helper_fn2(); // From CppCon 2016: Herb Sutter "Leak-Freedom in C++... By Default" // https://www.youtube.com/watch?v=JfmTagWcqoE template <class T> using Pimpl = const std::unique_ptr<T>; class MyClass { public: MyClass(); ~MyClass(); void f(); private: class Impl; // defined in cpp Pimpl<Impl> pimpl; };