3 ms·
C++: The advantages of Seq, and the demerits of std::string const&
- Kristine1975 11y agoLLVM implements this as StringRef. It has been proposed for inclusion into the C++ Standard as string_view: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3921.html http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n392...
- al2o3cr 11y agoInteresting to note that the Seq type described is identical in layout and intent to Rust's "slices".
- arthursilva 11y agoIt's a very useful thing in Rust so it should be the same in C++, without the ownership constraints though it'll very unsafe.