rippled
Loading...
Searching...
No Matches
xrpld
rpc
src/xrpld/rpc/Output.h
1
#ifndef XRPL_RPC_OUTPUT_H_INCLUDED
2
#define XRPL_RPC_OUTPUT_H_INCLUDED
3
4
#include <boost/utility/string_ref.hpp>
5
6
namespace
ripple
{
7
namespace
RPC {
8
9
using
Output
=
std::function
<void(boost::string_ref
const
&)>;
10
11
inline
Output
12
stringOutput
(
std::string
& s)
13
{
14
return
[&](boost::string_ref
const
& b) { s.
append
(b.data(), b.size()); };
15
}
16
17
}
// namespace RPC
18
}
// namespace ripple
19
20
#endif
std::string::append
T append(T... args)
std::string
std::function
ripple::RPC::stringOutput
Output stringOutput(std::string &s)
Definition
src/xrpld/rpc/Output.h:12
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:6
Generated by
1.9.8