raw_storage_iterator 클래스
초기화되지 않은 메모리에 결과를 저장하는 알고리즘을 사용할 수 있도록 제공되는 어댑터 클래스입니다.
template <class OutputIterator, class Type>
class raw_storage_iterator
매개 변수
OutputIterator
Specifies the output iterator for the object being stored.형식
The type of object for which storage is being allocated.
설명
The class describes an output iterator that constructs objects of type Type in the sequence it generates. An object of class raw_storage_iterator<ForwardIterator, Type> accesses storage through a forward iterator object, of class ForwardIterator, that you specify when you construct the object. For an object first of class ForwardIterator, the expression &*first must designate unconstructed storage for the next object (of type Type) in the generated sequence.
This adaptor class is used when it is necessary to separate memory allocation and object construction. The raw_storage_iterator can be used to copy objects into uninitialized storage, such as memory allocated using the malloc function.
멤버
생성자
Constructs a raw storage iterator with a specified underlying output iterator. |
형식 정의
Provides a type that describes an element to be stored a raw storage iterator. |
|
Provides a type that describes an iterator that underlies a raw storage iterator. |
연산자
A dereferencing operator used to implement the output iterator expression *ii = x. |
|
An assignment operator used to implement the raw storage iterator expression *i = x for storing in memory. |
|
Preincrement and postincrement operators for raw storage iterators. |
요구 사항
Header: <memory>
네임스페이스: std