mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-04-05 03:31:01 +08:00
update
This commit is contained in:
19
codingStyleIdioms/5_pImpl/pimplTime.h
Normal file
19
codingStyleIdioms/5_pImpl/pimplTime.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
using namespace std;
|
||||
|
||||
class C {
|
||||
vector<int> v;
|
||||
string s;
|
||||
};
|
||||
class D {
|
||||
string s;
|
||||
};
|
||||
|
||||
class X {
|
||||
private:
|
||||
struct XImpl;
|
||||
XImpl* pImpl;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user