maybe_reduced.hpp
Go to the documentation of this file.
auto reduced(T &&x) -> decltype(reduced_if(std::forward< T >(x), true))
Wraps x such that the reduction should finish.
Definition: maybe_reduced.hpp:73
#define ABL_DECLTYPE_RETURN(body_expr)
Utility for defining generic functions with a deduced return type, that are composed of a single expr...
Definition: utils.hpp:109
Tag for maybe_reduced state wrapper.
Definition: maybe_reduced.hpp:38
STL namespace.
auto not_reduced(T &&x) -> decltype(reduced_if(std::forward< T >(x), false))
Wraps x such that the reduction should continue.
Definition: maybe_reduced.hpp:81
auto reduced_if(T &&x, bool is_reduced) -> maybe_reduced< estd::decay_t< T > >
Wraps x in a maybe_reduced, where is_reduced contains whether the reduction should actually finish...
Definition: maybe_reduced.hpp:60
A decorator for the accumulator of a reduction.
Definition: state_wrapper.hpp:69