Yes, (if I understand your question correctly), you can "wrap" the template in a structure like:
template<typename T> class SomeClass; template<typename T> struct MyTypeDef { typedef SomeClass<T> type; };
and use it like:
MyTypeDef<T>::type
Edit: C ++ 0x will support something like
template<typename T> using MyType = SomeClass<T>;
Edit2: In the case of your example
typedef boost::interprocess::adaptive_pool allocator_t;
may be
template<typename T> struct allocator_t { typedef boost::interprocess::adaptive_pool<T> type; }
and used as
allocator_t<SomeClass>::type
Akanksh
source share