Linux Audio
Check our new training course
1#include <iostream> 2#include <memory> 3 4static void print_str(std::string s) 5{ 6 std::cout << s << std::endl; 7} 8 9int main() 10{ 11 std::string s("Hello World!"); 12 print_str(std::move(s)); 13 std::cout << "|" << s << "|" << std::endl; 14 return 0; 15}