C++におけるP.J.Plauger STLとSGI STLにおけるmapの違い
P.J.Plauger STLとSGI STLのmapのeraseメソッド実装には違いがあり、WindowsではP.J.Plauger STLP、LinuxではSGI STL、SGI STLでは標準的なSTL仕様が実現されている.
.J. Plauger STL:
SGI STL:
.J. Plauger STL:
for(ITER iter = mapTest.begin(); iter != mapTest.end();)
{
iter = mapTest.erase(iter);
}
SGI STL:
for(ITER iter = mapTest.begin(); iter != mapTest.end();)
{
mapTest.erase(iter++);
}