This all started a few days ago on twitter, when a discussion about implementing a wordcount algorithm came up. To be precise, it orignates in a couple of blogposts, to get the full details, just read the them here. In a short overview, a simple C++ programm was the origin, which could count the words in one or more files. Stephan T. Lavavej postet in to the comments a version working with C++11 regex library. While this implementation is quite elegant, its lacking like the first a bit in performance. Thats where the discussion started on twitter, when James McNellis and Kenny Kerr started to discuss their solution. Which they present in the linked Blogpost. Which presents a nice, and multithreaded solution, written in Windows specific C++ using PPL and a like. At that point I felt challenged, to implement my own version, in pure C++11. So, in this blogpost I will present to you, how this can be achieved in C++11.