#include <iostream>
#include <cassert>
#include <array>
#include <limits>
#include <set>
#include <unordered_map>
#include <functional>
#include <memory>
#include <ostream>
#include <string>
#include <vector>
#include <map>
#include <optional>
#include <chrono>
#include <mutex>
#include <thread>
#include <utility>
#include <typeinfo>
using namespace std;
int main()
{
std::string str = "Hello, world!";
std::string_view view1 = str;
std::string_view view2 = str.substr(7, 5);
cout << view1 << endl;
cout << view2 << endl;
return 0;
}
g++ lambda.cpp -o a -std=c++2a ;./a