Header lexy/callback/noop.hpp
Callback and sink lexy::noop
lexy/callback/noop.hpp
namespace lexy
{
constexpr callback auto noop;
constexpr sink<> auto noop;
}
A callback and sink that ignores all arguments and returns void
.
As a callback, it can be called with arbitrary arguments that are all ignored. As a sink, the sink callback also ignores all arguments.
Example 1. Ignore all errors produced during parsing