작성하기 쉽고 읽기 쉬운 코드
<ranges>
CPP ranges ViewRanges library (C++20) - cppreference.com
The ranges library is an extension and generalization of the algorithms and iterator libraries that makes them more powerful by making them composable and less error-prone.
https://en.cppreference.com/w/cpp/ranges
docs.microsoft.com
높은 수준에서 범위는 반복할 수 있는 범위입니다. 범위는 STL(표준 템플릿 라이브러리)을 사용하는 기능을 간소화하고 증폭하는 방식으로 반복기를 추상화합니다. STL 알고리즘은 일반적으로 작동해야 하는 컬렉션의 부분을 가리키는 반복기를 취합니다. 오늘 을 정렬하는 방법을 vector 고려합니다. 를 호출하려면 std::sort() 의 시작과 끝을 표시하는 두 개의 반복기를 전달합니다.
https://docs.microsoft.com/ko-kr/cpp/standard-library/ranges?view=msvc-160


Seonglae Cho