# C++ keyword: decltype (since C++11)

> C++ Atlas: `cppatlas.com/w/cpp/keyword/decltype` | Source: https://en.cppreference.com/w/cpp/keyword/decltype | Domain: Keywords | Standards: C++14

## Official Specification Summary (cppreference)

### Usage

- `decltype` specifier

(since C++14):

- `decltype(auto)`

### Notes

| Feature-test macro | Value | Std | Feature |
| --- | --- | --- | --- |
| `__cpp_decltype` | `200707L` | (C++11) | `decltype` |
| `__cpp_decltype_auto` | `201304L` | (C++14) | Return type deduction for normal functions |

### See also

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

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