-
[c++] lambda function and custom compare function아무거나적어~ 2023. 2. 2. 14:19
모든 stl은 (작은 거) < (큰 거) 가 되게 비교함수를 작성하면 됨
(a가 왼쪽에 있고, b가 오른쪽에 있어. 이거 맞아? 에 관한 답을 return하게 코딩하면 됨)
예외적으로 priority_queue 는 가장 큰 게 top에 오게 구현되어 있기 때문에 비교함수를 반대로 적어줘야함'아무거나적어~' 카테고리의 다른 글
에타 과목코드로 시간 및 강의실 조회 부분 자동화 (1) 2023.03.06 [c++] complex class (0) 2023.02.03 C++ class vs Structure (0) 2023.02.02 [visual studio] setting (0) 2023.01.11 파이썬이 콘솔 default setting (0) 2023.01.11