이 코드가 있습니다부분 템플릿 템플릿 특수화
template<typename T, template<typename, typename> class OuterCont, template<typename, typename> class InnerCont, class Alloc=std::allocator<T>>
class ContProxy {
OuterCont<T, InnerCont<T, Alloc>> _container;
};
typedef ContProxy<int, std::vector, std::list> IntCont;
을하지만 어떤 경우에는 InnerCont
로 T*
대신 std::list<T>
를 사용할 필요가 -이 같은 :
template<typename T, template<typename, typename> class OuterCont, T*, class Alloc=std::allocator<T>>
class ContProxy {
OuterCont<T, T*> _container;
};
이의 부분 특수화를 사용하는 것이 가능 이 경우의 '템플릿 템플릿'매개 변수는 무엇입니까?
또는 방법 최소 두통을 보관하는 방법은 ..