Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
C++: The advantages of Seq, and the demerits of std::string const&
(
denisbider.blogspot.com
)
3 points
by
ingve
on Nov 15, 2015
|
hide
|
past
|
favorite
|
3 comments
Kristine1975
on Nov 15, 2015
|
next
[–]
LLVM 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/n392...
al2o3cr
on Nov 15, 2015
|
prev
[–]
Interesting to note that the Seq type described is identical in layout and intent to Rust's "slices".
arthursilva
on Nov 15, 2015
|
parent
[–]
It's a very useful thing in Rust so it should be the same in C++, without the ownership constraints though it'll very unsafe.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: