ReactOS 0.4.15-dev-7712-gbbbcd8e
_raw_storage_iter.h
Go to the documentation of this file.
1/*
2 *
3 * Copyright (c) 1994
4 * Hewlett-Packard Company
5 *
6 * Copyright (c) 1996,1997
7 * Silicon Graphics Computer Systems, Inc.
8 *
9 * Copyright (c) 1997
10 * Moscow Center for SPARC Technology
11 *
12 * Copyright (c) 1999
13 * Boris Fomitchev
14 *
15 * This material is provided "as is", with absolutely no warranty expressed
16 * or implied. Any use is at your own risk.
17 *
18 * Permission to use or copy this software for any purpose is hereby granted
19 * without fee, provided the above notices are retained on all copies.
20 * Permission to modify the code and to distribute modified code is granted,
21 * provided the above notices are retained, and a notice that the code was
22 * modified is included with the above copyright notice.
23 *
24 */
25
26/* NOTE: This is an internal header file, included by other STL headers.
27 * You should not attempt to use it directly.
28 */
29
30#ifndef _STLP_INTERNAL_RAW_STORAGE_ITERATOR_H
31#define _STLP_INTERNAL_RAW_STORAGE_ITERATOR_H
32
33#ifndef _STLP_INTERNAL_ITERATOR_BASE_H
34# include <stl/_iterator_base.h>
35#endif
36
38
39template <class _ForwardIterator, class _Tp>
41 : public iterator<output_iterator_tag,void,void,void,void>
42{
43protected:
44 _ForwardIterator _M_iter;
45public:
47# ifdef _STLP_CLASS_PARTIAL_SPECIALIZATION
48 typedef void value_type;
49 typedef void difference_type;
50 typedef void pointer;
51 typedef void reference;
52# endif
53 explicit raw_storage_iterator(_ForwardIterator __x) : _M_iter(__x) {}
56 _Param_Construct(&*_M_iter, __element);
57 return *this;
58 }
60 ++_M_iter;
61 return *this;
62 }
65 ++_M_iter;
66 return __tmp;
67 }
68};
69
70# ifdef _STLP_USE_OLD_HP_ITERATOR_QUERIES
71template <class _ForwardIterator, class _Tp>
73#endif
75
76#endif /* _STLP_INTERNAL_RAW_STORAGE_ITERATOR_H */
77
78// Local Variables:
79// mode:C++
80// End:
#define output_iterator_tag
Definition: _abbrevs.h:26
void _Param_Construct(_T1 *__p, const _T2 &__val)
Definition: _construct.h:150
_ForwardIterator _M_iter
output_iterator_tag iterator_category
raw_storage_iterator< _ForwardIterator, _Tp > & operator*()
raw_storage_iterator< _ForwardIterator, _Tp > & operator=(const _Tp &__element)
raw_storage_iterator< _ForwardIterator, _Tp > operator++(int)
raw_storage_iterator(_ForwardIterator __x)
raw_storage_iterator< _ForwardIterator, _Tp > & operator++()
#define _STLP_BEGIN_NAMESPACE
Definition: features.h:501
#define _STLP_END_NAMESPACE
Definition: features.h:503
GLsizei const GLvoid * pointer
Definition: glext.h:5848
GLint reference
Definition: glext.h:11729