3rdparty
lexy
include
lexy
callback
noop.hpp
Go to the documentation of this file.
1
// Copyright (C) 2020-2024 Jonathan Müller and lexy contributors
2
// SPDX-License-Identifier: BSL-1.0
3
4
#ifndef LEXY_CALLBACK_NOOP_HPP_INCLUDED
5
#define LEXY_CALLBACK_NOOP_HPP_INCLUDED
6
7
#include <
lexy/callback/base.hpp
>
8
9
namespace
lexy
10
{
11
struct
_noop
12
{
13
using
return_type
=
void
;
14
15
template
<
typename
... Args>
16
constexpr
auto
sink
(
const
Args&...)
const
17
{
18
// We don't need a separate type, noop itself can have the required functions.
19
return
*
this
;
20
}
21
22
template
<
typename
... Args>
23
constexpr
void
operator()
(
const
Args&...)
const
24
{}
25
26
constexpr
void
finish
() && {}
27
};
28
30
inline
constexpr
auto
noop
=
_noop
{};
31
}
// namespace lexy
32
33
#endif // LEXY_CALLBACK_NOOP_HPP_INCLUDED
34
base.hpp
lexy::noop
constexpr auto noop
A callback with sink that does nothing.
Definition:
noop.hpp:30
lexy::_noop::operator()
constexpr void operator()(const Args &...) const
Definition:
noop.hpp:23
lexy
Definition:
any_ref.hpp:12
detail::void
j template void())
Definition:
json.hpp:4893
lexy::_noop::finish
constexpr void finish() &&
Definition:
noop.hpp:26
lexy::_noop::sink
constexpr auto sink(const Args &...) const
Definition:
noop.hpp:16
lexy::_noop
Definition:
noop.hpp:11
lexy::_noop::return_type
void return_type
Definition:
noop.hpp:13
behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Feb 28 2025 03:19:19