Decltype (auto)
Назначение
Решаемые задачи
Общая реализация на языке C++
int main(){
int x = 42;
const int& y = x;
decltype(auto) result = y;
std::cout << "result = " << result << std::endl;
return 0;
}Last updated