23. 标
简单
template <typname T>
using MyVector = std::vector<T>
template <typname T, typename A>
using MyVector =
std::vector<T, typename MyAlloc<A>::Concrete>
24. auto 键
现
单变
auto i = 1; // i为int;
变
auto i = 1, j = 1.1, k = 0.5; // i 为
auto f(int i, int j) -> int; //为
25. auto decltype
decltype(1); // int
decltype(1 + 1.0); // double
auto i = 1; // 态
typdef decltype(1) __type1;
__type1 i = 1;
时 达 结
auto add(U u, V v) -> decltype(u + v);
u v 现 u v
decltype 简 达 结 导