auto
Type Declarations¶
auto
Type Declarations: Motivation¶
vector<MyType>::iterator
iter = v.begin();
auto iter = v.begin();
|
|
auto
Type Declarations: Details¶
auto i = 10; // int
auto iter = v.cbegin();
|
const auto& cref = value;
int data[42];
// int *no_copy ...
auto no_copy = data;
|