Skip to content

std::as_cast<To, From>

as_cast<To, From>

Performs a safe cast from one type to another

Signature

as_cast(value: From) -> To requires <To, From>

Specifiers

  • constexpr