观看Stephan T. Lavavej:核心C++#1,并注意到他使用的是begin(collection)
而不是collection.begin()
。
有哪些优势?
我想到
的第一个优点是std::begin(collection)
适用于普通的旧数组。