개인 공부/STL
remove와 erase
chaeD2
2022. 11. 21. 13:10
https://openmynotepad.tistory.com/80
remove-erase 고찰
이 곳에 쓰인 모든 글은 Bjarne Stroustrup 교수님의 'The C++ Programming Language' 에서 발췌하여 직접 정리하였습니다. 1. 미리 알아둡시다. ( 대체 왜 remove랑 erase가 둘 다 있는거야? ) 기본적으로 표준 알고
openmynotepad.tistory.com
remove는 실제 원소 삭제가 이루어지는 게 아니라 move를 통해 값 덮어쓰기가 수행되는 것임.