相关疑难解决方法(0)

如何在C++中通过其值类型来专门化Iterator?

可以通过它来专门化Iterator模板参数value_type吗?

我有一个功能与以下原型.

template<typename InputIterator>
void f(InputIterator first, InputIterator last);
Run Code Online (Sandbox Code Playgroud)

如果InputIterator::value_type是,我想特别处理SomeSpecificType.

c++ templates iterator template-specialization

14
推荐指数
2
解决办法
1902
查看次数