mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-22 06:40:53 +00:00
23 lines
383 B
C++
23 lines
383 B
C++
#include <xrpl/protocol/PathAsset.h>
|
|
|
|
#include <ostream>
|
|
#include <string>
|
|
#include <variant>
|
|
|
|
namespace xrpl {
|
|
|
|
std::string
|
|
to_string(PathAsset const& asset)
|
|
{
|
|
return std::visit([&](auto const& issue) { return to_string(issue); }, asset.value());
|
|
}
|
|
|
|
std::ostream&
|
|
operator<<(std::ostream& os, PathAsset const& x)
|
|
{
|
|
os << to_string(x);
|
|
return os;
|
|
}
|
|
|
|
} // namespace xrpl
|