1
0
forked from Alepha/Alepha

Simpler Str << form.

This commit is contained in:
2025-05-02 19:04:15 -04:00
parent d008e456c8
commit 39e30217d7

View File

@ -13,6 +13,7 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: String_m
inline namespace exports inline namespace exports
{ {
class String; class String;
enum { Str };
enum { FinishString }; enum { FinishString };
@ -48,6 +49,12 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: String_m
} }
}; };
inline String
operator << ( decltype( Str ), const Alepha::OStreamable auto &t )
{
return String{} << t;
}
inline std::string inline std::string
exports::stringify( const Alepha::OStreamable auto &item, Alepha::OStreamable auto && ... params ) exports::stringify( const Alepha::OStreamable auto &item, Alepha::OStreamable auto && ... params )
{ {