The other answers are no longer valid, as std::clamp is now in C++17. At the time of writing it isn't supported by GCC, but will be in GCC ...
確定! 回上一頁