userver: fmt::formatter<::decimal64::Decimal< Prec, RoundPolicy >, Char > Class Template Reference
Loading...
Searching...
No Matches
fmt::formatter<::decimal64::Decimal< Prec, RoundPolicy >, Char > Class Template Reference

#include <userver/decimal64/decimal64.hpp>

Detailed Description

template<int Prec, typename RoundPolicy, typename Char>
class fmt::formatter<::decimal64::Decimal< Prec, RoundPolicy >, Char >

fmt support

Spec format:

  • {} trims any trailing zeros;
  • {:f} writes exactly Prec decimal digits, including trailing zeros if needed.
  • {:.N} writes exactly N decimal digits, including trailing zeros if needed.

Definition at line 1464 of file decimal64.hpp.

Public Member Functions

constexpr auto parse (fmt::basic_format_parse_context< Char > &ctx)
 
template<typename FormatContext >
auto format (const ::decimal64::Decimal< Prec, RoundPolicy > &dec, FormatContext &ctx) const
 

Member Function Documentation

◆ format()

template<int Prec, typename RoundPolicy , typename Char >
template<typename FormatContext >
auto fmt::formatter<::decimal64::Decimal< Prec, RoundPolicy >, Char >::format ( const ::decimal64::Decimal< Prec, RoundPolicy > & dec,
FormatContext & ctx ) const
inline

Definition at line 1494 of file decimal64.hpp.

◆ parse()

template<int Prec, typename RoundPolicy , typename Char >
constexpr auto fmt::formatter<::decimal64::Decimal< Prec, RoundPolicy >, Char >::parse ( fmt::basic_format_parse_context< Char > & ctx)
inlineconstexpr

Definition at line 1467 of file decimal64.hpp.


The documentation for this class was generated from the following file: