Hacker News new | past | comments | ask | show | jobs | submit login

Think of string_view as a non-owning pointer to a known-size array. If the array is moved or destroyed, then string_view is left dangling... just like a pointer.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: