std::string_view can optimize both performance and code readability in code sections which handle strings. However it can also lead to UB and to memory issues if used incorrectly.
Tag: string_view
[Solution] Riddle – The Shared View
The Shared View riddle solution. Involves usage example of shared_ptr aliasing constructor, design patterns reflection and factory, metaprogramming, string_view and variant/visit.
Riddle – The Shared View
C++ Riddle - involves shared_ptr, string_view and some metaprogramming.