xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
include
xrpl
json
Output.h
1
#pragma once
2
3
#include <
functional
>
4
#include <
string
>
5
#include <
string_view
>
6
7
namespace
json
{
8
9
using
Output
=
std::function
<void(
std::string_view
)>;
10
11
inline
Output
12
stringOutput
(
std::string
& s)
13
{
14
return
[&](
std::string_view
b) { s.
append
(b.data(), b.size()); };
15
}
16
17
}
// namespace json
std::string::append
T append(T... args)
std::string
std::string_view
std::function
functional
json
JSON (JavaScript Object Notation).
Definition
json_errors.h:5
json::Output
std::function< void(std::string_view)> Output
Definition
Output.h:9
json::stringOutput
Output stringOutput(std::string &s)
Definition
Output.h:12
string
string_view
Generated by
1.17.0