Yes, like this
#include
#include
template class container_t, typename value_t>
struct container_types
{
typedef container_t value_container_t;
typedef container_t > pair_container_t;
};
template
using my_vector = std::vector;
int main(int argc,char** argv)
{
container_types::value_container_t buff(100);
std::cout << buff[50] << std::endl;
}
Note that I had to wrap std::vector
with my_vector
, as std::vector
actually has several template arguments.