mimic++ v1
Loading...
Searching...
No Matches
mimicpp::matches::range Namespace Reference

Functions

template<std::ranges::forward_range Range, typename Comparator = std::equal_to<>>
constexpr auto eq (Range &&expected, Comparator comparator=Comparator{})
 Tests, whether the target range compares equal to the expected range, by comparing them element-wise.
 
template<std::ranges::forward_range Range, typename Comparator = std::equal_to<>>
constexpr auto unordered_eq (Range &&expected, Comparator comparator=Comparator{})
 Tests, whether the target range is a permutation of the expected range, by comparing them element-wise.
 
template<typename Relation = std::ranges::less>
constexpr auto is_sorted (Relation relation=Relation{})
 Tests, whether the target range is sorted, by applying the relation on each adjacent elements.
 
constexpr auto is_empty ()
 Tests, whether the target range is empty.
 
constexpr auto has_size (const std::integral auto expected)
 Tests, whether the target range has the expected size.