코딩/C++
[C++] algorithm STL의 sort()와 queue STL의 priority_queue의 정렬 방식의 차이 - less와 greater
kimyunseok
2021. 9. 1. 01:44
Sort() - algorithm STL
- less : 오름차순
- greater : 내림차순
priority_queue - queue STL
- less : 내림차순
- greater : 오름차순