#include <iostream>
#include <string>
#include <string_view>

int main() {
    char letters[]{'c', 'a', 't'};
    const std::string_view view{letters, 3};
    const std::string snapshot{view};
    std::cout << view << ' ' << snapshot << '\n';
    letters[1] = 'u';
    std::cout << view << ' ' << snapshot << '\n';
    std::cout << view.size() << ' ' << snapshot.size() << '\n';
    return 0;
}
