Port of the C# Stateless library to C++11.