asked
Following and Learning C++ with Hong Jeong-mo
16.1 Introduction to the Standard Template Library and Containers
Written on
·
315
0
만약에 map.insert({'d',10}) 이거랑 map.insert(std::pair('d',10)) 이거랑 차이가 뭔가요??
Answer 3
pair를 적용하냐 안하냐, duplication할거냐 말거냐의 차이 아닌가요?
글 작성자님 지금은 알고 계시리라 생각하는데 알려주실 수 있으신가요?
똑같다는거죠?
둘을 해보시고 map에 뭐가 들어갔나 확인을 해보세요.보시는 결과 그대로입니다. 강의에서 3:00~ 부분도 다시 들어보시고 관련 정보도 찾아보세요