cmoon::formattable


Defined in module <cmoon.concepts>


template<class T, class CharT = char, class Out = std::back_insert_iterator<std::basic_string<CharT>>>
concept formattable = 
    requires(const T& t, std::basic_format_context<Out, CharT>& ctx, std::formatter<T, CharT> f)
{
    f.format(t, ctx);
};


(1)

The concept formattable<T, CharT> is satisfied if and only if a value t of type T can be formatted using the Standard Formatting Library with character type CharT and output type Out.