1
0
forked from Alepha/Alepha

Delimiters helpers which work with ostream helpers.

This commit is contained in:
2023-10-23 03:31:23 -04:00
parent 3a92d2b788
commit e1d3374e09
5 changed files with 195 additions and 2 deletions

View File

@ -13,6 +13,8 @@ static_assert( __cplusplus > 2020'00 );
#include <Alepha/Reflection/tuplizeAggregate.h>
#include <Alepha/IOStreams/delimiters.h>
namespace Alepha::Hydrogen::IOStreams ::detail:: ostreamable_module
{
inline namespace exports
@ -43,11 +45,10 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: ostreamable_module
// aggregates, so we'll go with this simple case for now...
tuple_for_each( decomposed ) <=[&]( const auto &element )
{
if( not first ) os << '\t';
if( not first ) os << FieldDelimiter;
first= false;
os << element;
};
os << '\n';
return os;
}