Template Template Parameters

C++The following is the syntax of a template template parameter declaration:

Syntax - Template Template Parameter Declaration
 
>>-template--<--template-parameter-list-->--class--+------------+--+------------------+-><
                                                   '-identifier-'  '-=--id-expression-'
 
 

The following example demonstrates a declaration and use of a template template parameter:

template<template <class T> class X> class A { };
template<class T> class B { };
 
A<B> a;

Related References

IBM Copyright 2003