int i = 42;
const auto v = &i;const intconst int&const int*- other
struct P { int a, b };int values[] = { 1, 2, 3, 4, 5 };P v = { 1, 4 };P v{1, 4};P v(1, 4);std::vector<int> v = { 1, 2, 3, 4 };std::vector<int> v(1, 2, 3, 4);int v[] = { 1, 3, 5, 6.6 };
- default constructor
- copy constructor
- move constructor
- copy assignment operator
- move assignment operator
- destructor
- free function
- class method
- class member object