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

From Wikibooks, open books for an open world
< C++ Language‎ | Std‎ | Stl‎ | Algorithms
Jump to navigation Jump to search

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