WPILibC++ 2024.3.2
fmt::formatter< Unit, CharT, std::enable_if_t< units::traits::is_unit_t_v< Unit > > > Struct Template Reference

Formatter for unit types. More...

#include <units/formatter.h>

Public Member Functions

constexpr auto parse (fmt::format_parse_context &ctx)
 
auto format (const Unit &obj, fmt::format_context &ctx) const
 Writes out a formatted unit. More...
 

Detailed Description

template<typename Unit, typename CharT>
struct fmt::formatter< Unit, CharT, std::enable_if_t< units::traits::is_unit_t_v< Unit > > >

Formatter for unit types.

Member Function Documentation

◆ format()

template<typename Unit , typename CharT >
auto fmt::formatter< Unit, CharT, std::enable_if_t< units::traits::is_unit_t_v< Unit > > >::format ( const Unit &  obj,
fmt::format_context ctx 
) const
inline

Writes out a formatted unit.

Parameters
objUnit instance.
ctxFormat string context.

◆ parse()

template<typename Unit , typename CharT >
constexpr auto fmt::formatter< Unit, CharT, std::enable_if_t< units::traits::is_unit_t_v< Unit > > >::parse ( fmt::format_parse_context ctx)
inlineconstexpr

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