std::ranges::clamp
From cppreference.com
C++
Algorithm library
Constrained algorithms
All names in this menu belong to namespace
std::ranges