Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.43 KB

File metadata and controls

23 lines (16 loc) · 1.43 KB

cppsandbox

Sandbox for playing around with c++. Most of it is for me experimenting with language features, template metaprogramming techniques or just some interesting idea. Most of it is written in c++14. The license is according to LICENSE, unless something else is specified in the individual source file.

Author: Paul Dreik

Experiment interleaving indexes with function calls, what later became accepted into SQLiteCpp

Trying to select an integer type based on range, for instance to select the smallest type that can cover the given value.

This shows how to do fizzbuzz at compile time.

Experiments with getting the amount of thread synchronization down, by utilizing thread local storage.

Playing around with tuples.

This started as a discussion on Meeting c++ 2016, if std::partial_sum could be made parallel. This is a clumsy attempt to show that it can be done, but the speedup is less than proportional to the number of threads and sometimes worse.