std::string_view vs std::string: Ownership vs Performance Trade‑off
Goal Design a function that accepts textual data while balancing zero‑copy performance with lifetime safety. The decision centers on whether to expose std::string_view for read‑only consumption or require std::string to enforce ownership. Constraints & Uncertainty Zero‑copy semantics of std::string_view avoid allocations but risk dangling references if t