4 * Hewlett-Packard Company
6 * Permission to use, copy, modify, distribute and sell this software
7 * and its documentation for any purpose is hereby granted without fee,
8 * provided that the above copyright notice appear in all copies and
9 * that both that copyright notice and this permission notice appear
10 * in supporting documentation. Hewlett-Packard Company makes no
11 * representations about the suitability of this software for any
12 * purpose. It is provided "as is" without express or implied warranty.
16 * Silicon Graphics Computer Systems, Inc.
18 * Permission to use, copy, modify, distribute and sell this software
19 * and its documentation for any purpose is hereby granted without fee,
20 * provided that the above copyright notice appear in all copies and
21 * that both that copyright notice and this permission notice appear
22 * in supporting documentation. Silicon Graphics makes no
23 * representations about the suitability of this software for any
24 * purpose. It is provided "as is" without express or implied warranty.
27 /* NOTE: This is an internal header file, included by other STL headers.
28 * You should not attempt to use it directly.
31 #ifndef _CPP_BITS_STL_RAW_STORAGE_ITERATOR_H
32 #define _CPP_BITS_STL_RAW_STORAGE_ITERATOR_H 1
36 template <class _ForwardIterator, class _Tp>
37 class raw_storage_iterator
38 : public iterator<output_iterator_tag, void, void, void, void>
41 _ForwardIterator _M_iter;
45 raw_storage_iterator(_ForwardIterator __x) : _M_iter(__x) {}
48 operator*() { return *this; }
51 operator=(const _Tp& __element)
53 construct(&*_M_iter, __element);
57 raw_storage_iterator<_ForwardIterator, _Tp>&
64 raw_storage_iterator<_ForwardIterator, _Tp>
67 raw_storage_iterator<_ForwardIterator, _Tp> __tmp = *this;