C++17 – Avoid Copying with std::string_view
The purpose of std::string_view is to avoid copying data already owned by someone else and of which only a non-mutating view is required. So, this post is mainly about performance.
This author has not written his bio yet.
But we are proud to say that Rainer Grimm contributed 656 entries already.
The purpose of std::string_view is to avoid copying data already owned by someone else and of which only a non-mutating view is required. So, this post is mainly about performance.
Now, it’s time to choose the next pdf bundle? You will get all posts, all source files, and a cmake file to the chosen topic.
My post, C++17 – What’s New in the Library, was fine for the first overview. Today, I will look deeper into the new library.
After I provided the big picture of the new C++17 core language in my post “C++17 – What’s New in the Core Language“, I will give you more details today. The details are mainly about inline variables, templates, automatic type deduction with auto, and attributes.
What’s new in the library? A lot. To make the long story short. We get a std::string_view, parallel algorithm of the Standard Template Library, a file system library, and the three new data types std::any, std::optional, and std::variant. Let’s look at the details.
Now, I have prepared the pdf bundle to the C++ memory model/ Das C++ Speichermodell. To get it is quite simple.
C++11, C++14, and C++17. I guess you see the pattern. Later this year, we will get a new C++ standard. In March 2017, the C++17 specification reached the Draft International Standard stage. Before I dive into the details, I will give you an overview of C++17.
That is easy. Both of you, the German and the English reader prefer the same pdf bundle: The C+ Memory Modell/ Das C++ Speichermodell.
I wrote a few posts about using concepts. Concepts are a named set of requirements. Let’s define a few concepts in this post.
The unification of templates, concepts, and placeholders goes on. This time, I will look closely at constrained (concepts) and unconstrained (auto) placeholders in the context of templates.