Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
c++ STL ではit、ベクトルへの反復子がある場合、ベクトルへのインデックスvがit - v.begin()保証されるため、*it == v[it - v.begin()]? もしそうなら、これはすべてのランダムアクセス反復子に当てはまりますか?
it
v
it - v.begin()
*it == v[it - v.begin()]
はい、そうです。すべての RA イテレータに当てはまります。