How to simplify notation with many template arguments and use it in
another template class in C++
I want to use Google hash map which declaration is
template <class Key, class T, class HashFcn, class EqualKey, class Alloc>
class dense_hash_map { ... };
and put this template class as one of arguments in another template
classes like
template<template<class Key, class T, class HashFcn, class EqualKey, class
Alloc > class GoogleHashTable, class SomeOtherClass>
class MyClass { };
I want to simplify previos notation to be something like this
template<GoogleTemplate class GoogleHashTable, class SomeOtherClass>
but how to define GoogleTemplate as
template<class Key, class T, class HashFcn, class EqualKey, class Alloc >
No comments:
Post a Comment