is this a standard C++ function? it's so well written!