Algorithms Library: Functions
Classes
Classes | Description |
---|---|
all_of_functor | Functor representing the overloads for the all_of function. (class) |
any_of_functor | Functor representing the overloads for the any_of function. (class) |
count_functor | Functor representing the overloads for the count function. (class) |
count_if_functor | Functor representing the overloads for the count_if function. (class) |
find_functor | Functor representing the overloads for the find function. (class) |
find_if_functor | Functor representing the overloads for the find_if function. (class) |
find_if_not_functor | Functor representing the overloads for the find_if_not function. (class) |
for_each_functor | Functor representing the overloads for the for_each function. (class) |
none_of_functor | Functor representing the overloads for the none_of function. (class) |
reduce_functor | Functor representing the overloads for the reduce function. (class) |
Attributes
Member Attributes | Description |
---|---|
all_of | Checks if a predicate is true for all the elements in a range. (public variable) |
any_of | Checks if a predicate is true for any of the elements in a range. (public variable) |
count | Returns the number of elements matching an element. (public variable) |
count_if | Returns the number of elements satisfying specific criteria. (public variable) |
find | Finds the first element equal to another element. (public variable) |
find_if | Finds the first element satisfying specific criteria. (public variable) |
find_if_not | Finds the first element not satisfying specific criteria. (public variable) |
for_each | Applies a function to a range of elements. (public variable) |
none_of | Checks if a predicate is true for none of the elements in a range. (public variable) |
reduce | Sums up (or accumulate with a custom function) a range of elements, except out of order. (public variable) |
Attributes
variable all_of
Defined in header <futures/algorithm/all_of.hpp>
constexpr all_of_functor all_of;
Checks if a predicate is true for all the elements in a range.
variable any_of
Defined in header <futures/algorithm/any_of.hpp>
constexpr any_of_functor any_of;
Checks if a predicate is true for any of the elements in a range.
variable count
Defined in header <futures/algorithm/count.hpp>
constexpr count_functor count;
Returns the number of elements matching an element.
variable count_if
Defined in header <futures/algorithm/count_if.hpp>
constexpr count_if_functor count_if;
Returns the number of elements satisfying specific criteria.
variable find
Defined in header <futures/algorithm/find.hpp>
constexpr find_functor find;
Finds the first element equal to another element.
variable find_if
Defined in header <futures/algorithm/find_if.hpp>
constexpr find_if_functor find_if;
Finds the first element satisfying specific criteria.
variable find_if_not
Defined in header <futures/algorithm/find_if_not.hpp>
constexpr find_if_not_functor find_if_not;
Finds the first element not satisfying specific criteria.
variable for_each
Defined in header <futures/algorithm/for_each.hpp>
constexpr for_each_functor for_each;
Applies a function to a range of elements.
variable none_of
Defined in header <futures/algorithm/none_of.hpp>
constexpr none_of_functor none_of;
Checks if a predicate is true for none of the elements in a range.
variable reduce
Defined in header <futures/algorithm/reduce.hpp>
constexpr reduce_functor reduce;
Sums up (or accumulate with a custom function) a range of elements, except out of order.
Updated on 2023-01-04