C++ std::string_view equivalent in D?

0xFFFFFFFF 0xFFFFFFFF at mail.com
Wed Feb 21 10:37:27 UTC 2018


On Wednesday, 21 February 2018 at 10:23:23 UTC, Jonathan M Davis 
wrote:
> As I said in my previous response, read this article:
>
> https://dlang.org/articles/d-array-article.html

Sorry, I didn't see this before I replied.
Had I, I wouldn't have done that.

>string sv = "some string";
>then _zero_ heap allocations take place.

I think u've answered my question.


More information about the Digitalmars-d-learn mailing list