Sane C++ Libraries
C++ Platform Abstraction Libraries
SC::Algorithms Namespace Reference

Simple algorithms (see Algorithms) More...

Classes

struct  smallerThan
 Functor that evaluates to a < b More...
 

Functions

template<typename Iterator , typename BinaryPredicate = smallerThan<typename TypeTraits::RemovePointer<Iterator>::type>>
constexpr void bubbleSort (Iterator first, Iterator last, BinaryPredicate predicate=BinaryPredicate())
 Sorts iterator range according to BinaryPredicate (bubble sort). More...
 
template<typename ForwardIterator , typename UnaryPredicate >
constexpr ForwardIterator findIf (ForwardIterator first, ForwardIterator last, UnaryPredicate &&predicate)
 Find item satisfying the given predicate. More...
 
template<typename ForwardIterator , typename UnaryPredicate >
ForwardIterator removeIf (ForwardIterator first, ForwardIterator last, UnaryPredicate &&predicate)
 Removes all items in the given range, satisfying the given predicate. More...
 

Detailed Description

Simple algorithms (see Algorithms)