# C++ keyword: auto

> C++ Atlas: `cppatlas.com/w/cpp/keyword/auto` | Source: https://en.cppreference.com/w/cpp/keyword/auto | Domain: Keywords | Standards: C++11, C++14, C++17, C++20, C++23

## Official Specification Summary (cppreference)

### Usage

(until C++11):

- Automatic storage duration specifier

(since C++11):

- `auto` placeholder type specifier
- Function declaration with trailing return type

(since C++17):

- Structured binding declaration

(since C++20):

- Abbreviated function template

(since C++23):

- Explicit cast to a prvalue copy

### See also

(since C++14):

- [`decltype`](https://en.cppreference.com/w/cpp/keyword/decltype) (`decltype(auto)`)

(until C++17):

- [`register`](https://en.cppreference.com/w/cpp/keyword/register) (Automatic storage duration specifier)

---
Attribution: content from https://en.cppreference.com/w/cpp/keyword/auto (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.