templated typedef ?
I'm using libgc, a garbage collector for C and C++.
To make STL containers garbage collectable one must use the gc_allocator. 

Instead of writing <p> `std::vector<MyType>` <p> 
one has to write  <p>  `std::vector<MyType,gc_allocator<MyType> >` <p>

Could there be a way to define something like <p>

`template<class T> typedef std::vector<MyType,gc_allocator<MyType> > gc_vector<T>;`

I checked some time ago and found out it was not possible. But I may have been wrong or there might be another way around. 

Defining maps in this way is particularly unpleasing.<p>
`std::map<Key,Val>` <p> becomes  <p> `std::map<Key,Val, std::less<Key>, gc_allocator< std::pair<const Key, val> > >`
templated typedef ?
===

I'm using libgc, a garbage collector for C and C++.
To make STL containers garbage collectable one must use the gc_allocator. 

Instead of writing <p> `std::vector<MyType>` <p> 
one has to write  <p>  `std::vector<MyType,gc_allocator<MyType> >` <p>

Could there be a way to define something like <p>

`template<class T> typedef std::vector<MyType,gc_allocator<MyType> > gc_vector<T>;`

I checked some time ago and found out it was not possible. But I may have been wrong or there might be another way around. 

Defining maps in this way is particularly unpleasing.<p>
`std::map<Key,Val>` <p> becomes  <p> `std::map<Key,Val, std::less<Key>, gc_allocator< std::pair<const Key, val> > >`