# C++ keyword: `union`

From cppreference.com
< cpp‎ | keyword

### Usage

- declaration of a union type
- If a function or a variable exists in scope with the name identical to the name of a union type, `union` can be prepended to the name for disambiguation, resulting in an elaborated type specifier

### See also

- `class`, `struct`

`final` | (since C++11)

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/keyword/union&oldid=176066"