Is the following C++ code well-formed:
void consumer(char const* p) { std::printf(\"%s\", p); } std::string random_string_generator() { // returns a ran
The temporary returned by the function random_string_generator() can be used in consumer() function safely.