P3643

std::to_signed and std::to_unsigned

R5

Add `std::to_signed` and `std::to_unsigned` function templates in the style of `std::to_underlying`.

Authors
Jan Schultke
Mailing
2026-10
Doc date
2026-10-14
Audience
LEWG

Revision history

  1. 2026-10
    R5 Selected (shown above)
  2. 2026-10
    R4 LEWG

    std::to_signed and std::to_unsigned

  3. 2026-09

    std::to_signed and std::to_unsigned

    P