btu/common/algorithms.hpp file

Namespaces

namespace btu
namespace btu::common

Functions

template <class Container, class ValueType>
auto contains(const Container& cont, const ValueType& val) →  auto
template <class It, class Predicate, class Sum, class ValueType = typename std::iterator_traits<It>::value_type>
auto merge_if(It first, It last, const Predicate& predicate, const Sum& sum) →  It
template <class It, class Predicate>
auto merge_if(It first, It last, Predicate&& predicate) →  It
template <class Container, class Predicate>
auto merge_if(Container& cont, Predicate&& predicate) →  auto
template <class Container, class Predicate, class Sum>
auto merge_if(Container& cont, Predicate&& pred, Sum&& sum) →  auto
template <class ValueType>
void remove_duplicates(std::vector<ValueType>& cont)