Stroika Library 3.0d25
 
Loading...
Searching...
No Matches
Stroika::Foundation::Characters::IFormattable Concept Reference

what types Stroika's formatting - FormatString (_f), Format, DbgTrace - formats: anything std::format can, and anything else Characters::ToString can print, as its ToString More...

#include <Format.h>

Concept definition

template<typename T>
concept Stroika::Foundation::Characters::IFormattable = Common::StdCompat::formattable<remove_cvref_t<T>, wchar_t> or IToString<remove_cvref_t<T>>
what types Stroika's formatting - FormatString (_f), Format, DbgTrace - formats: anything std::format...
Check if legal to call Characters::ToString(T)...
Definition ToString.h:120

Detailed Description

what types Stroika's formatting - FormatString (_f), Format, DbgTrace - formats: anything std::format can, and anything else Characters::ToString can print, as its ToString

So it takes more types than std::format. It also formats a std::optional, an exception_ptr, an enum - as its Characters::ToString, a format-spec applying to that as to a String. (Stroika's own types, and any of yours with a ToString () method, std::format formats too: Stroika registers a std::formatter for them.)

Definition at line 34 of file Characters/Format.h.