可以通过它来专门化Iterator模板参数value_type吗?
value_type
我有一个功能与以下原型.
template<typename InputIterator> void f(InputIterator first, InputIterator last);
如果InputIterator::value_type是,我想特别处理SomeSpecificType.
InputIterator::value_type
SomeSpecificType.
c++ templates iterator template-specialization
c++ ×1
iterator ×1
template-specialization ×1
templates ×1