1
0
forked from Alepha/Alepha

Slab strings via slots...

This commit is contained in:
2024-05-11 20:55:09 -04:00
parent 0bc03fc4be
commit d73b4dbe08
3 changed files with 42 additions and 83 deletions

View File

@ -22,10 +22,14 @@ static auto init= Alepha::Utility::enroll <=[]
std::cerr << "small hello world string." << std::endl;
String s3= s2 + ": and bob";
std::cerr << "appended..." << std::endl;
s3= s3 + s3 + s2;
s2= std::move( s3 );
for( int i= 0; i < 10; ++i )
{
std::cerr << "appended..." << std::endl;
s3= s3 + s3 + s2;
s2= std::move( s3 );
}
std::cout << s3 << std::endl;
};