This thing about a std::string or std::vector only being able to hold contents at compile time as a temporary or within a consteval function is frustrating. As far as I can tell it means you cannot directly get its size and then still access its content.
So far the only way I've seen that would work is converting it to an array, but to do that you need to pre-allocate one to some maximum size. In order to parameterize this you also have to shove the generator in a lambda.




