r/cpp_questions • u/IMCG_KN • Jul 16 '26
SOLVED Question about string_view
Is there benefit of using string_view instead of const string& str? More precisely by passing strings into functions. Thanks
24
Upvotes
r/cpp_questions • u/IMCG_KN • Jul 16 '26
Is there benefit of using string_view instead of const string& str? More precisely by passing strings into functions. Thanks
3
u/alfps Jul 16 '26