language: C++11 (gcc-4.7.2)
date: 426 days 7 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <vector>
 
class MyType
{
public:
  int a;
  int b;
  float c;
 
MyType(int A, int B, float C)
{
    a = A;
    b = B;
    c = C;
}
};
 
int main()
{
  std::vector<MyType> v;
MyType m(1, 2, 3);
v.push_back(m);
}