Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4680 right-hear 1
/*
2
 *
3
 * Copyright (c) 1994
4
 * Hewlett-Packard Company
5
 *
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.
13
 *
14
 *
15
 * Copyright (c) 1996
16
 * Silicon Graphics Computer Systems, Inc.
17
 *
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.
25
 */
26
 
27
/* NOTE: This is an internal header file, included by other STL headers.
28
 * You should not attempt to use it directly.
29
 */
30
 
31
#ifndef _CPP_BITS_STL_RAW_STORAGE_ITERATOR_H
32
#define _CPP_BITS_STL_RAW_STORAGE_ITERATOR_H 1
33
 
34
namespace std
35
{
36
 
37
template 
38
class raw_storage_iterator {
39
protected:
40
  _ForwardIterator _M_iter;
41
public:
42
  typedef output_iterator_tag iterator_category;
43
  typedef void                value_type;
44
  typedef void                difference_type;
45
  typedef void                pointer;
46
  typedef void                reference;
47
 
48
  explicit raw_storage_iterator(_ForwardIterator __x) : _M_iter(__x) {}
49
  raw_storage_iterator& operator*() { return *this; }
50
  raw_storage_iterator& operator=(const _Tp& __element) {
51
    construct(&*_M_iter, __element);
52
    return *this;
53
  }
54
  raw_storage_iterator<_ForwardIterator, _Tp>& operator++() {
55
    ++_M_iter;
56
    return *this;
57
  }
58
  raw_storage_iterator<_ForwardIterator, _Tp> operator++(int) {
59
    raw_storage_iterator<_ForwardIterator, _Tp> __tmp = *this;
60
    ++_M_iter;
61
    return __tmp;
62
  }
63
};
64
 
65
 
66
} // namespace std
67
 
68
#endif /* _CPP_BITS_STL_RAW_STORAGE_ITERATOR_H */
69
 
70
// Local Variables:
71
// mode:C++
72
// End: