MT Core (C++)
Core library for replacing C++ standard in project usage
Loading...
Searching...
No Matches
mtcore::io::Formatter< SubnetMaskV6 > Struct Reference

Formats subnet v4 masks. More...

#include <ip.hpp>

Inheritance diagram for mtcore::io::Formatter< SubnetMaskV6 >:
Collaboration diagram for mtcore::io::Formatter< SubnetMaskV6 >:

Static Public Member Functions

template<WriterImpl WI>
static Result< size_t, typename Writer< WI >::ErrType > fmt (Writer< WI > &writer, FormatOptions, const SubnetMaskV6 &val)
 

Detailed Description

Formats subnet v4 masks.

Definition at line 410 of file ip.hpp.

Member Function Documentation

◆ fmt()

template<WriterImpl WI>
static Result< size_t, typename Writer< WI >::ErrType > mtcore::io::Formatter< SubnetMaskV6 >::fmt ( Writer< WI > & writer,
FormatOptions ,
const SubnetMaskV6 & val )
inlinestatic

Definition at line 412 of file ip.hpp.

413 {
414 return print(writer, "/{d}", val.id);
415 }
Result< size_t, typename Writer< WI >::ErrType > print(Writer< WI > &writer, const char *fmt, const Args &...args)
Prints arguments using a format string Element insert points are designated by a pair of curly braces...
Struct to override to specify how a type should be formatted.
Definition format.hpp:45
Here is the call graph for this function:

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