这是 Range 类:
template <typename T>
class Range
{
public:
class iterator;
Range(T low, T high) : low_(low), high_(high)
{
}
const iterator begin() const
{
return iterator(low_);
}
const iterator end() const
{
return iterator(high_);
}
};
哪个迭代器之王(前向、随机、输入)是最好的选择?