C++ STL replacement.