Which programming language is this?
template <std::integral T>
T square(T x) { return x * x; }
Answer: C++
A constrained template with std::integral is C++20.
Play Programming Languages ▸
template <std::integral T>
T square(T x) { return x * x; }
Answer: C++