我正在查看堆栈的libstdc ++源代码,它显示了两次typedef的相同类型:
template<typename _Tp, typename _Sequence = deque<_Tp> >
class stack
{
// concept requirements
typedef typename _Sequence::value_type _Sequence_value_type;
...
public:
typedef typename _Sequence::value_type value_type;
这样做的目的是什么?