xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
libxrpl
protocol
PathAsset.cpp
1
#include <xrpl/protocol/PathAsset.h>
2
3
#include <
ostream
>
4
#include <
string
>
5
#include <
variant
>
6
7
namespace
xrpl
{
8
9
std::string
10
to_string
(
PathAsset
const
& asset)
11
{
12
return
std::visit
([&](
auto
const
& issue) {
return
to_string
(issue); }, asset.
value
());
13
}
14
15
std::ostream
&
16
operator<<
(
std::ostream
& os,
PathAsset
const
& x)
17
{
18
os <<
to_string
(x);
19
return
os;
20
}
21
22
}
// namespace xrpl
std::ostream
xrpl::PathAsset
Definition
PathAsset.h:20
xrpl::PathAsset::value
constexpr std::variant< Currency, MPTID > const & value() const
Definition
PathAsset.h:93
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::operator<<
std::ostream & operator<<(std::ostream &out, BaseUInt< Bits, Tag > const &u)
Definition
base_uint.h:672
xrpl::to_string
std::string to_string(BaseUInt< Bits, Tag > const &a)
Definition
base_uint.h:657
ostream
string
variant
std::visit
T visit(T... args)
Generated by
1.17.0