Variable template

Variable template

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

Syntax

template < parameter-list > variable-declaration

Explanation

variable-declaration - a declaration of a variable. The declared variable name becomes a template name.
parameter-list - a non-empty comma-separated list of the 登录查看完整内容