, 우리는 때때로 클래스의 내부 코드의 가독성을 개선하기 위해 다음 볼 수 있습니다 :템플릿 템플릿 매개 변수를 typedef 할 수 있습니까? C++ 라이브러리 헤더에서
template<typename MyExplicitelyLongTemplateParameter>
class C
{
public:
typedef MyExplicitelyLongTemplateParameter P;
// Use "P" and keep your sanity.
};
내 질문은, 하나의 템플릿 템플릿 매개 변수를 사용하여 동일한 작업을 수행 할 수 있습니까?
template<template<typename> typename MyExplicitelyLongTemplateParameter>
class C
{
public:
typedef /* ??? */ P;
// Use "P" and keep your sanity.
};
나는이 건너하지 않은를 전에 구문. 그것은 무엇을합니까? – yuriks
나는 그것이 템플릿이어야한다고 생각한다 class MyExplicitelyLongTemplateParameter> – ymett