String view outlives source

Code reviewHard30 minGoogle and Nvidia style

Your task

Review this C++ code using std::string_view.