다음을 통해 공유


output_iterator_tag 구조체

출력 반복기를 나타내는 iterator category 함수에 반환 형식을 제공하는 클래스입니다.

struct output_iterator_tag {};

설명

The category tag classes are used as compile tags for algorithm selection. The template function needs to find the most specific category of its iterator argument so that it can use the most efficient algorithm at compile time. For every iterator of type Iterator, iterator_traits<Iterator>::iterator_category must be defined to be the most specific category tag that describes the iterator's behavior.

The type is the same as iterator<Iter>::iterator_category when Iter describes an object that can serve as a output iterator.

This tag is not parameterized on the value_type or difference_type for the iterator, as with the other iterator tags, because output iterators do not have either a value_type or a difference_type.

예제

See iterator_traits or random_access_iterator_tag for an example of how to use iterator_tags.

요구 사항

헤더: <iterator>

네임스페이스: std

참고 항목

참조

C++ 표준 라이브러리의 스레드 보안

표준 템플릿 라이브러리