You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Iterators are a generalization of pointers that allow a C++ program to work with different data structures (containers) in a uniform manner. To be able to construct template algorithms that work correctly and efficiently on different types of data structures, the library formalizes not just the interfaces but also the semantics and complexity assumptions of iterators.
https://rinatz.github.io/cpp-book/ch03-08-iterators/
ポインタはイテレータでもある。実際、
std::initializer_listの
begin/
end`はポインタを返す。イテレータを使用できるコンテナにC形式の配列がないのも気になる。そのための
std::begin()
/std::end()
であるはずThe text was updated successfully, but these errors were encountered: