在对标准容器进行迭代时,您认为省略std::
前缀并依靠 ADL 来查找定义是否是个好主意?例子:
std::vector<int> vec = get_vec();
// range-based for loop would be preferred here, but just for the sake of example
for (auto it = begin(vec), end = end(vec); it != end; ++it) { /*...*/ }
是否有任何理由这样做或不这样做?