Namespaces
Variants

std:: mergeable

From cppreference.net
Iterator library
Iterator concepts
Iterator primitives
Algorithm concepts and utilities
Indirect callable concepts
Common algorithm requirements
(C++20)
mergeable
(C++20)
(C++20)
Utilities
(C++20)
Iterator adaptors
Range access
(C++11) (C++14)
(C++14) (C++14)
(C++11) (C++14)
(C++14) (C++14)
(C++17) (C++20)
(C++17)
(C++17)
헤더 파일에 정의됨 <iterator>
template < class I1, class I2, class Out, class Comp = ranges:: less ,

class Proj1 = std:: identity , class Proj2 = std:: identity >
concept mergeable =
std:: input_iterator < I1 > &&
std:: input_iterator < I2 > &&
std:: weakly_incrementable < Out > &&
std:: indirectly_copyable < I1, Out > &&
std:: indirectly_copyable < I2, Out > &&
std:: indirect_strict_weak_order < Comp,
std :: projected < I1, Proj1 > ,

std :: projected < I2, Proj2 >> ;
(C++20부터)

mergeable 개념은 두 입력 범위를 Comp 에 의해 부과된 엄격한 약순서에 따라 단일 출력 범위로 병합하는 알고리즘의 요구 사항을 지정합니다.

의미론적 요구사항

mergeable 는 그것이 포함하는 모든 개념이 모델링된 경우에만 모델링됩니다.

참고 항목

두 정렬된 범위를 병합함
(알고리즘 함수 객체)
두 집합의 합집합을 계산함
(알고리즘 함수 객체)
두 집합의 교집합을 계산함
(알고리즘 함수 객체)
두 집합의 차집합을 계산함
(알고리즘 함수 객체)
두 집합의 대칭차를 계산함
(알고리즘 함수 객체)