# Declarations

> C++ Atlas: `cppatlas.com/w/cpp/language/declarations` | Source: https://en.cppreference.com/w/cpp/language/declarations | Domain: Language | Standards: C++11, C++17, C++20, C++26

Declarations are how names are introduced (or re-introduced) into the C++ program. Not all declarations actually declare anything, and each kind of entity is declared differently.

## Official Specification Summary (cppreference)

*Declarations* are how names are introduced (or re-introduced) into the C++ program. Not all declarations actually declare anything, and each kind of entity is declared differently. Definitions are declarations that are sufficient to use the entity identified by the name.

A declaration is one of the following:

- Function definition
- Template declaration (including Partial template specialization)
- Explicit template instantiation
- Explicit template specialization
- Namespace definition
- Linkage specification

(since C++11):

- Attribute declaration (*attr* `;`)

- Empty declaration (`;`)
- A function declaration without a *decl-specifier-seq*:

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