take_while.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
auto call(ReducingFnT &&step, StateT &&state, InputTs &&...ins) -> estd::enable_if_t< is_skip_state< estd::decay_t< StateT > >
Call the next reducing function in a transducer that could otherwise skip calling the next reducing f...
Definition: skip.hpp:276
auto state_unwrap(T &&s) -> decltype(state_traits_t< T >::unwrap(std::forward< T >(s)))
Convenience function for calling state_traits::unwrap
Definition: state_traits.hpp:136
STL namespace.
state_wrapper< maybe_reduced_tag, T, bool > maybe_reduced
State wrapper for transducers that may want to signal that the reduction is finished.
Definition: maybe_reduced.hpp:48
auto take_while(PredicateT &&p) -> take_while_t< estd::decay_t< PredicateT > >
Similar to clojure.core/take_while$1.
Definition: take_while.hpp:72
Utility to write simple transducers easily.
Definition: transducer_impl.hpp:60
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 skip(ReducingFnT &&, StateT &&state, InputTs &&...) -> skip_result_t< ReducingFnT, StateT, InputTs... >
Skip calling the next reducing function in a transducer.
Definition: skip.hpp:228