Variable template (since C++14)

A variable template defines a family of variables or static data members.

# Notes

Until variable templates were introduced in C++14, parametrized variables were typically implemented as either static data members of class templates or as constexpr function templates returning the desired values.

Variable templates cannot be used as template template arguments.

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
CWG 2255C++14it was unclear whether a specialization of a staticdata member template is a static data memberit is