File indexing completed on 2025-08-06 08:13:57
0001
0002 class aaa
0003 {
0004 public:
0005 vector < double > a;
0006 vector < double > b;
0007 vector < double > c;
0008 vector < vector < double > > vv;
0009
0010 template < class T >
0011 void Print( vector < T >& v )
0012 {
0013 cout << "#elements: " << v.size() << endl;
0014 for( auto& val : v )
0015 cout << val << endl;
0016
0017 cout << endl;
0018 }
0019
0020 template < class T >
0021 void Clear( vector < vector < T > > & vv )
0022 {
0023 for( auto& v : vv )
0024 v.clear();
0025 }
0026
0027 void Init()
0028 {
0029 a.push_back( 1 );
0030 a.push_back( 1 );
0031 a.push_back( 1 );
0032
0033 b.push_back( 1 );
0034 b.push_back( 1 );
0035 b.push_back( 1 );
0036
0037 c.push_back( 1 );
0038 c.push_back( 1 );
0039 c.push_back( 1 );
0040
0041
0042
0043
0044
0045
0046 vv.push_back( a );
0047 vv.push_back( b );
0048 vv.push_back( c );
0049 }
0050
0051 aaa()
0052 {
0053
0054 this->Init();
0055
0056 for( auto& v : vv )
0057 Print( v );
0058
0059 this->Clear( vv );
0060
0061 for( auto& v : vv )
0062 Print( v );
0063
0064 }
0065
0066 };
0067
0068 int temp()
0069 {
0070
0071 aaa* qwerty = new aaa();
0072
0073 return 0;
0074 }