Performance of the Parallel STL Algorithms

In my last post, "Parallel Algorithms of the STL with the GCC Compiler", I presented the necessary theory about the C++17 algorithm. Today, I made a performance test using the Microsoft and GCC compiler to answer the simple question: Does the execution policy pay off?

Read more
Views: 40697

Parallel Algorithms of the STL with the GCC Compiler

GCC supports my favorite C++17 feature: the Standard Template Library (STL) parallel algorithms. I recognized this a few days ago, and I'm happy to write a post about it and share my enthusiasm.

Read more
Views: 31866

C++17: Improved Associative Containers and Uniform Container Access

C++11 has eight associative containers. With C++17, you can more comfortably insert new elements into them, merge existing associative containers, or move elements from one container into another if they are similar. But that is not all. The access to the associative and sequential containers was unified.

Read more
Views: 38071

C++17: New Parallel Algorithms of the Standard Template Library

The idea is quite simple. The Standard Template (STL) has more than 100 algorithms for searching, counting, and manipulating ranges and their elements. With C++17, 69 are overloaded, and a few new ones are added. The overloaded and new algorithm can be invoked with a so-called execution policy. By using the execution policy, you can specify whether the algorithm should run sequentially, parallel, or parallel and vectorized.

Read more
Tags: Haskell
Views: 79752

C++17 has a Visitor

What have std::optional, std::any, and std::variant in common? You can construct them in place. But that is not everything. A std::variant supports a visitor.

Read more
Views: 67193

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.

Read more
Tags: string
Views: 267108

C++17- std::byte and std::filesystem

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. 

Read more
Views: 102568

C++17- More Details about the Core Language

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.

Read more
Views: 49284

C++17 - What's New in the Library?

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.

Read more
Tags: string
Views: 59094

C++17 - What's New in the Core Language?

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.

Read more
Views: 98074

Stay Informed about my Mentoring

 

Mentoring

English Books

Course: Modern C++ Concurrency in Practice

Course: C++ Standard Library including C++14 & C++17

Course: Embedded Programming with Modern C++

Course: Generic Programming (Templates)

Course: C++ Fundamentals for Professionals

Course: The All-in-One Guide to C++20

Course: Master Software Design Patterns and Architecture in C++

Subscribe to the newsletter (+ pdf bundle)

All tags

Blog archive

Source Code

Visitors

Today 3394

Yesterday 5555

Week 33602

Month 55276

All 12133485

Currently are 199 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments