[utility.underlying]

# 22 General utilities library [[utilities]](./#utilities)

## 22.2 Utility components [[utility]](utility#underlying)

### 22.2.8 Function template to_underlying [utility.underlying]

[ð](#lib:to_underlying)

`template<class T>
  constexpr underlying_type_t<T> to_underlying(T value) noexcept;
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L683)

*Returns*: static_cast<underlying_type_t<T>>(value)[.](#1.sentence-1)
