Quantcast
Channel: Bartek's coding blog
Browsing all 325 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Examples of Parallel Algorithms From C++17

MSVC (VS 2017 15.7, end of June 2018) is as far as I know the only major compiler/STL implementation that has parallel algorithms. Not everything is done, but you can use a lot of algorithms and apply...

View Article


Image may be NSFW.
Clik here to view.

Parallel STL And Filesystem: Files Word Count Example

Last week you might have read about a few examples of parallel algorithms. Today I have one more application that combines the ideas from the previous post.We’ll use parallel algorithms and the...

View Article


Image may be NSFW.
Clik here to view.

Menu Class - Example of Modern C++17 STL features

Writing articles about modern C++ features is a lot of fun, but what’s even better is to see how you use those new things in real world. Today I’m happy to present a guest post article from JFT who was...

View Article

Image may be NSFW.
Clik here to view.

In-Place Construction for std::any, std::variant and std::optional

When you read articles or reference pages for std::any, std::optional or std::variant you might notice a few helper types called in_place_* available in constructors.Why do we need such syntax? Is this...

View Article

Image may be NSFW.
Clik here to view.

Performance of std::string_view vs std::string from C++17

How much is std::string_view faster than standard std::string operations?Have a look at a few examples where I compare std::string_view against std::string.Read more...

View Article


Image may be NSFW.
Clik here to view.

Speeding Up string_view String Split Implementation

Thank you for all the comments about the string_view performance! Last week I got a lot of feedback on how to improve the initial string split code. Have a look at how can we update the code and get...

View Article

Image may be NSFW.
Clik here to view.

How to Initialize a String Member

How do you initialise a string member in the constructor? By using const string&, string value and move, string_view or maybe something else?Let’s have a look at possible options.Read more...

View Article

Image may be NSFW.
Clik here to view.

C++17 In Detail Book!

I’m happy to present my first ebook on C++!Here’s the short story and the description of what you can find inside.Plus, read on and see how to get a free copy :)Read more...

View Article


Image may be NSFW.
Clik here to view.

Speeding up Pattern Searches with Boyer-Moore Algorithm from C++17

With C++17 you can now use more sophisticated algorithms for pattern searches! Now, you’ll have more control and a promising performance boost for many use cases.See what the options are.Read more...

View Article


Image may be NSFW.
Clik here to view.

Preprocessing Phase for C++17's Searchers

Searchers from C++17 are a new way to perform efficient pattern lookups. The new standard offers three searchers: default_searcher , boyer_moore_searcher and boyer_moore_horspool_searcher. The last two...

View Article

Image may be NSFW.
Clik here to view.

"C++17 In Detail" First Update

I’m happy to announce that just a few days ago I updated the book! “C++17 In Detail” grew by 7 pages (up to 219), includes a few new examples, new feature descriptions and lots of “bug fixes”.See...

View Article

Image may be NSFW.
Clik here to view.

C++ Links #1

I'd like to make an experiment on the blog and introduce a new simple series. Each Friday you'll see a summary with valuable links and resources from the C++ World. The links and annotations are coming...

View Article

Image may be NSFW.
Clik here to view.

How To Use std::visit With Multiple Variants

std::visit is a powerful utility that allows you to call a function over a currently active type in std::variant. It does some magic to select the proper overload, and what’s more, it can support many...

View Article


Image may be NSFW.
Clik here to view.

C++ Links #2

Welcome to new C++ Links - most important and useful articles, podcasts and videos that happened between 8th and 14th of September. Today you will find a link to a post about the C++ quality of life...

View Article

Image may be NSFW.
Clik here to view.

Professional C++ 4th Edition, Book Review

As usually, C++ needs good books and up-to-date learning resources. In this review, I’d like to present a book that should significantly enhance your knowledge of Modern C++, including C++17.Let’s see...

View Article


Image may be NSFW.
Clik here to view.

C++ Links #3

Welcome to new C++ Links - most important and useful articles, podcasts and videos that happen between 15th and 21st of September. Today you will find a link to post about “same but different” objects...

View Article

Image may be NSFW.
Clik here to view.

C++ Links #4

Welcome to new C++ Links - most important and useful articles, podcasts and videos that happen between 22th and 28th of September. This week CppCon took place - the biggest C++ conference. In today’s...

View Article


Image may be NSFW.
Clik here to view.

Conversions, Searchers and C++17 In Detail Updates

I’m happy to announce that last Friday I updated the book! “C++17 In Detail” grew by 31 pages (up to 250), includes two new chapters and lots of “bug” fixes and better explanations.See what’s...

View Article

Image may be NSFW.
Clik here to view.

C++ Links #5

Welcome to new C++ Links - most important and useful articles, podcasts and videos that happen between 29th September and 5th of October. Read more...

View Article

Image may be NSFW.
Clik here to view.

C++ Links #6

Welcome to new C++ Links - most important and useful articles, podcasts and videos that happen between 6th and 12th of October. Today you will find a link to Core Guidelines rules about Concepts, a...

View Article
Browsing all 325 articles
Browse latest View live