rippled
Loading...
Searching...
No Matches
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
6namespace ripple {
7namespace RPC {
8
9using Output = std::function<void(boost::string_ref const&)>;
10
11inline Output
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
T append(T... args)
Output stringOutput(std::string &s)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6