rippled
Loading...
Searching...
No Matches
src/xrpld/rpc/Output.h
1#pragma once
2
3#include <boost/utility/string_ref.hpp>
4
5namespace xrpl {
6namespace RPC {
7
8using Output = std::function<void(boost::string_ref const&)>;
9
10inline Output
12{
13 return [&](boost::string_ref const& b) { s.append(b.data(), b.size()); };
14}
15
16} // namespace RPC
17} // namespace xrpl
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:5