What are the Algorithms namespace used for ?

 
 

Algorithms are an important part of STL. These are generic algorithms that can be applied to containers. The algorithms are divided into three categories: 



    1. Non-modifying sequence operations: these algorithms do not directly modify the object they work on. These are basically the search algorithms, checking for equality and counting. E.g. find () algorithm is used to locate an element within a sequence.

    2. Mutations sequence operations: these algorithms modify the object that they operate on. These are operations such as copy, fill, replace and transform. E.g. copy () algorithm is used to copy a sequence of objects to a target object.

    3. sorting algorithms: these algorithms provide sorting and merging sequences and they operate on sorted sequences. E.g. sort (), partial_sort (), binary_search (), etc.


Re: What are the Algorithms namespace used for ?

This article do not talk about"What are the Algorithms namespace used for ?"