hackingcpp / comments

Comments regarding hackingcpp.com
1 stars 0 forks source link

cpp/std/sequence_views #57

Open utterances-bot opened 1 month ago

utterances-bot commented 1 month ago

C++ Sequence Views: string_view & span | hacking C++

Views provide access to resources without owning them, i.e., they are not responsible for management/cleanup/finalization of the referenced resources.

https://hackingcpp.com/cpp/std/sequence_views.html

TheFourthRome commented 1 month ago

The last part, Memory Invalidation By Owner: you can't push back {6,7,8,9} to w because push back requires an element not a container.