Go to the documentation of this file.
4 #ifndef LEXY_CALLBACK_AGGREGATE_HPP_INCLUDED
5 #define LEXY_CALLBACK_AGGREGATE_HPP_INCLUDED
18 static_assert(std::is_aggregate_v<return_type>);
29 template <
typename Fn,
typename Value,
typename... Tail>
36 template <
typename Fn,
typename Value,
typename... Tail>
49 template <
typename Fn,
typename Value>
60 constexpr
auto sink()
const
71 #endif // LEXY_CALLBACK_AGGREGATE_HPP_INCLUDED
constexpr auto && finish() &&
constexpr auto as_aggregate
A callback with sink that creates an aggregate.
constexpr auto sink() const
constexpr T operator()(lexy::member< Fn >, Value &&value, Tail &&... tail) const
constexpr void operator()(lexy::member< Fn >, Value &&value)
constexpr T operator()(T &&result) const
constexpr T operator()(lexy::nullopt &&) const
constexpr T operator()(T &&result, lexy::member< Fn >, Value &&value, Tail &&... tail) const