libbmb
Modern implementation of STL
Loading...
Searching...
No Matches
algo_base.h File Reference
#include <compare>
#include "utils/compare.h"
#include "utils/concepts.h"
#include "utils/iterators.h"
Include dependency graph for algo_base.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  bmb
 

Functions

template<InputIterator Iter1, InputIterator Iter2, typename Cmp = compare_three_way>
auto bmb::lexicographical_compare_three_way (Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2, Cmp cmp=Cmp())
 Compares ranges lexicographically using C++20 three-way comparation.
 
template<InputIterator Iter1, InputIterator Iter2, typename Pred = equal_to>
requires Predicate<Pred, typename IteratorTraits<Iter1>::reference, typename IteratorTraits<Iter2>::reference>
bool bmb::equal (Iter1 first1, Iter1 last1, Iter2 first2, Pred pred=Pred())
 Checks whether given ranges are equal.
 
template<InputIterator Iter1, InputIterator Iter2, typename Pred = equal_to>
requires Predicate<Pred, typename IteratorTraits<Iter1>::reference, typename IteratorTraits<Iter2>::reference>
bool bmb::equal (Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2, Pred pred=Pred())
 Checks whether given ranges are equal.
 

Detailed Description

File provides basic, convenient functions (like equal, transform, etc.)

Authors
bivafra