Is it standard practice in the STL to not do boundary checking here?