utils: using functions from c++11.