Useful functions for C++ 11