Friday, 13 September 2013

Applying partially applied template

Applying partially applied template

Having a class like the A, is there a way to apply it to a template like
this of B, with T2 set to some type C? But without creating another
template class inheriting from A.
template<typename T1, typename T2>
class A
{ };
template<template <typename T1> class T3>
class B
{ };

No comments:

Post a Comment