Algorithm (C++)

In the C++ Standard Library, algorithms are components that perform algorithmic operations on containers and other sequences.[1]

The C++ standard provides some standard algorithms collected in the <algorithm> standard header.[2] A handful of algorithms are also in the <numeric> header. All algorithms are in the std namespace.

Categories of algorithms

The algorithms in the C++ Standard Library can be organized into the following categories.

Examples

References

  1. ISO/IEC (2003). ISO/IEC 14882:2003(E): Programming Languages - C++ §25 Algorithms library [lib.algorithms] para. 1
  2. Stroustrup, Bjarne (2009). Programming : principles and practice using C++. Upper Saddle River, NJ: Addison-Wesley. p. 729. ISBN 9780321543721. Retrieved 22 March 2012. The standard library algorithms are found in <algorithm>.

const word is used to give a permanent value to a variable.

External links


This article is issued from Wikipedia - version of the 4/21/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.