Skip to content

Instantly share code, notes, and snippets.

formatter:

template<>                                                  
struct std::formatter<Type> {
  constexpr auto parse(std::format_parse_context& context) { 
    return context.begin();
  }
  auto format(const Type& sVal, std::format_context& context) const {
    return std::format_to(context.out(), "{}", Type.getValue());
 }