Why test<std::vector<int> >();
is wrong?
How to comprehend the usage of typename
in template <template <typename T, typename AllocT > typename ContainerT>
?
Here is the code snippet:
template <template <typename T, typename AllocT > typename ContainerT>
test()
{
ContainerT<int, my::Allocator<int> > container.
}
int main()
{
test<std::vector>();
test<std::list>();
test<std::set>();
}