MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
fmt::formatter< ofi::Provider > Struct Reference

#include <Format.hpp>

Public Member Functions

template<typename Context>
auto format (ofi::Provider const &provider, Context &ctx) const
constexpr auto parse (fmt::format_parse_context &ctx)

Detailed Description

Definition at line 39 of file Format.hpp.

Member Function Documentation

◆ format()

template<typename Context>
auto fmt::formatter< ofi::Provider >::format ( ofi::Provider const & provider,
Context & ctx ) const
inline

Definition at line 47 of file Format.hpp.

48 {
49 switch (provider)
50 {
51 case ofi::Provider::TCP: return fmt::format_to(ctx.out(), "tcp");
52 case ofi::Provider::VERBS: return fmt::format_to(ctx.out(), "verbs");
53 case ofi::Provider::EFA: return fmt::format_to(ctx.out(), "efa");
54 case ofi::Provider::SHM: return fmt::format_to(ctx.out(), "shm");
55 default: return fmt::format_to(ctx.out(), "unknown");
56 }
57 }

◆ parse()

auto fmt::formatter< ofi::Provider >::parse ( fmt::format_parse_context & ctx)
inlineconstexpr

Definition at line 41 of file Format.hpp.

42 {
43 return ctx.begin();
44 }

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