CoreComponents 3.0.0
A Modern C++ Toolkit
|
Find a matching item. More...
#include <cc/find>
Static Public Member Functions | |
template<class Order = DefaultOrder, class Container , class Pattern = typename Container::Item, class Index = long> | |
static bool | find (const Container *items, const Pattern &pattern, Index *finalIndex) |
Search in a sorted list of items. | |
template<class Order = DefaultOrder, class Container , class Pattern = typename Container::Item, class Index = long> | |
static bool | find (Container *items, const Pattern &pattern, Index *finalIndex=nullptr, typename Container::Item **finalItem=nullptr) |
Find a matching item.
|
static |
Search in a sorted list of items.
Order | Sorting order |
Container | Container type |
Pattern | Pattern type |
Index | Index type |
items | The sorted list of items |
pattern | Pattern to search for |
finalIndex | Returns the final index of the search |