libdl  0.0.1
Simple yet powerful deep learning
Loading...
Searching...
No Matches
fmt::formatter< std::vector< T > > Struct Template Reference

#include <logging.hpp>

Public Member Functions

constexpr auto parse (format_parse_context &ctx) -> decltype(ctx.begin())
 
template<typename FormatContext >
auto format (const std::vector< T > &input, FormatContext &ctx) -> decltype(ctx.out())
 

Detailed Description

template<typename T>
struct fmt::formatter< std::vector< T > >
Todo:
remove when formatting ranges is supported

Definition at line 50 of file logging.hpp.

Member Function Documentation

◆ format()

template<typename T >
template<typename FormatContext >
auto fmt::formatter< std::vector< T > >::format ( const std::vector< T > &  input,
FormatContext &  ctx 
) -> decltype(ctx.out())
inline

Definition at line 54 of file logging.hpp.

54 {
55 return fmt::format_to(ctx.out(), "{{{}}}", fmt::join(input, ", "));
56 }

◆ parse()

template<typename T >
constexpr auto fmt::formatter< std::vector< T > >::parse ( format_parse_context &  ctx) -> decltype(ctx.begin())
inlineconstexpr

Definition at line 51 of file logging.hpp.

51{ return ctx.end(); }

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