Junior — Senior
Determining the need for memory allocation for std::string when calling a function
livecode
Task condition
It is necessary to understand whether creating an std::string object inside a function leads to heap memory allocation.
void method_string()
{
std::string str("123");
}