#include <lexy/callback/base.hpp>
Go to the source code of this file.
Classes | |
struct | lexy::_fold< T, Arg, Inplace, Op > |
struct | lexy::_fold_sfinae< Inplace > |
struct | lexy::_fold_sfinae< false > |
struct | lexy::_fold_sfinae< true > |
struct | lexy::_fold< T, Arg, Inplace, Op >::_sink_callback |
Namespaces | |
lexy | |
Functions | |
template<typename T , typename Arg = T, typename... Op> | |
constexpr auto | lexy::fold (Arg &&init, Op &&... op) |
Sink that folds all the arguments with the binary operation op. More... | |
template<typename T , typename Arg = T, typename... Op> | |
constexpr auto | lexy::fold_inplace (Arg &&init, Op &&... op) |
Variables | |
constexpr auto | lexy::count = fold_inplace<std::size_t>(0u, [](std::size_t& result, auto&&...) { ++result; }) |
Sink that counts all arguments. More... | |