Variable Templates
Variables parameterised by type (C++14).
Intermediate
template <class T> constexpr T pi = T(3.14159265358979L); → pi<float>.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.