mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
formatting
This commit is contained in:
@@ -106,8 +106,7 @@ template <class T>
|
||||
concept Integral64 = std::is_same_v<T, std::int64_t> || std::is_same_v<T, std::uint64_t>;
|
||||
|
||||
template <class STAmount, class Asset>
|
||||
concept CanUseAsScale = requires(Asset a, Number n) { STAmount(a, n); } &&
|
||||
requires(STAmount s) { s.exponent(); };
|
||||
concept CanUseAsScale = requires(Asset a, Number n) { STAmount(a, n); } && requires(STAmount s) { s.exponent(); };
|
||||
|
||||
/** Number is a floating point type that can represent a wide range of values.
|
||||
*
|
||||
|
||||
@@ -480,14 +480,12 @@ STAmount::zeroed() const
|
||||
return STAmount(mAsset);
|
||||
}
|
||||
|
||||
inline STAmount::
|
||||
operator bool() const noexcept
|
||||
inline STAmount::operator bool() const noexcept
|
||||
{
|
||||
return *this != beast::zero;
|
||||
}
|
||||
|
||||
inline STAmount::
|
||||
operator Number() const
|
||||
inline STAmount::operator Number() const
|
||||
{
|
||||
if (native())
|
||||
return xrp();
|
||||
|
||||
Reference in New Issue
Block a user