Go to the source code of this file.
|
template<typename... Fns> |
constexpr auto | lexy::callback (Fns &&... fns) |
| Creates a callback. More...
|
|
template<typename ReturnType , typename... Fns> |
constexpr auto | lexy::callback (Fns &&... fns) |
|
template<typename Sink , typename = lexy::sink_callback<Sink>> |
constexpr auto | lexy::callback (Sink &&sink) |
| Creates a callback that forwards all arguments to the sink. More...
|
|
template<typename... Fns> |
constexpr auto | lexy::callback_with_state (Fns &&... fns) |
| Creates a callback that also receives the parse state. More...
|
|
template<typename ReturnType , typename... Fns> |
constexpr auto | lexy::callback_with_state (Fns &&... fns) |
|
template<typename MemFn , typename T > |
constexpr auto | lexy::mem_fn (MemFn T::*fn) |
| Creates a callback from a member function. More...
|
|
◆ LEXY_MAKE_MEM_FN_TRAITS
#define LEXY_MAKE_MEM_FN_TRAITS |
( |
|
... | ) |
|
Value: template <typename ReturnType, typename... Args> \
struct _mem_fn_traits<ReturnType(Args...) __VA_ARGS__> \
{ \
using return_type = ReturnType; \
}; \
template <typename ReturnType, typename... Args> \
struct _mem_fn_traits<ReturnType(Args..., ...) __VA_ARGS__> \
{ \
using return_type = ReturnType; \
};
Definition at line 112 of file adapter.hpp.
◆ LEXY_MAKE_MEM_FN_TRAITS_CV
#define LEXY_MAKE_MEM_FN_TRAITS_CV |
( |
|
... | ) |
|
Value:
LEXY_MAKE_MEM_FN_TRAITS(const __VA_ARGS__) \
LEXY_MAKE_MEM_FN_TRAITS(volatile __VA_ARGS__) \
LEXY_MAKE_MEM_FN_TRAITS(const volatile __VA_ARGS__)
Definition at line 124 of file adapter.hpp.
◆ LEXY_MAKE_MEM_FN_TRAITS_CV_REF
#define LEXY_MAKE_MEM_FN_TRAITS_CV_REF |
( |
|
... | ) |
|
Value:
LEXY_MAKE_MEM_FN_TRAITS_CV(&__VA_ARGS__) \
LEXY_MAKE_MEM_FN_TRAITS_CV(&&__VA_ARGS__)
Definition at line 130 of file adapter.hpp.