Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //.h файл
- class Foo{
- private:
- unique_ptr<FooImp> impl;
- public:
- void DoSomethig();
- };
- //И .cpp файл, в котором лежит
- struct FooImpl{
- void ReallyDoSomethig(){doSomething;}
- };
- void Foo::DoSomething(){
- impl->ReallyDoSomethig();
- }
- Foo::Foo() : impl(make_unique<FooImpl>()){ }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement