CS202   7- ‹#›
Class Templates
•Clients must specify the values for non-type identifiers explicitly inside of  angle brackets when defining objects class templates.
n    //function template declaration
n    template <char non_type, class TYPE_ID>
n    class t_class {
n      public:
n        TYPE_ID function(int TYPE_ID);
n    };
n    //client code
n    t_class <'\n',int> obj;
•Using non-type formal arguments allows the client to specify at compile time some constant expression when defining an object, which can be used by the class to initialize constants, determine the size of statically allocated arrays, or any other initialization.