Jump to content

C++ Language/Std/Stl/Algorithms/UsageWithCArray

From Wikibooks, open books for an open world

A C-pointer implements operations (e.g., ++) that some STL algorithms expect from their iterators. Thus, some algorithms (including std::copy()) allow you to use a C-array as if it were a STL collection.

Additional information about using STL algorithms with a C-array