Lines 74-94
Link Here
|
74 |
|
74 |
|
75 |
void clear() |
75 |
void clear() |
76 |
{ |
76 |
{ |
77 |
#if defined(__STL_USE_STD_ALLOCATORS) || defined(__GLIBCPP_INTERNAL_VECTOR_H) |
77 |
#if defined(__STL_USE_STD_ALLOCATORS) || defined(_VECTOR_H) |
78 |
|
78 |
|
79 |
#if defined(__GLIBCPP_INTERNAL_VECTOR_H) |
79 |
#if defined(_VECTOR_H) |
80 |
|
80 |
|
81 |
_Destroy(_M_start, _M_finish); |
81 |
_Destroy(_M_impl._M_start, _M_impl._M_finish); |
82 |
|
82 |
|
83 |
#else |
83 |
#else |
84 |
|
84 |
|
85 |
destroy(_M_start, _M_finish); |
85 |
destroy(_M_impl._M_start, _M_impl._M_finish); |
86 |
|
86 |
|
87 |
#endif |
87 |
#endif |
88 |
|
88 |
|
89 |
_M_deallocate(_M_start, _M_end_of_storage - _M_start); |
89 |
_M_deallocate(_M_impl._M_start, _M_impl._M_end_of_storage - _M_impl._M_start); |
90 |
|
90 |
|
91 |
_M_start = _M_finish = _M_end_of_storage = 0; |
91 |
_M_impl._M_start = _M_impl._M_finish = _M_impl._M_end_of_storage = 0; |
92 |
|
92 |
|
93 |
#else |
93 |
#else |
94 |
|
94 |
|
Lines 108-128
Link Here
|
108 |
|
108 |
|
109 |
void clear() |
109 |
void clear() |
110 |
{ |
110 |
{ |
111 |
#if defined(__STL_USE_STD_ALLOCATORS) || defined(__GLIBCPP_INTERNAL_VECTOR_H) |
111 |
#if defined(__STL_USE_STD_ALLOCATORS) || defined(_VECTOR_H) |
112 |
|
112 |
|
113 |
#if defined(__GLIBCPP_INTERNAL_VECTOR_H) |
113 |
#if defined(_VECTOR_H) |
114 |
|
114 |
|
115 |
_Destroy(_M_start, _M_finish); |
115 |
_Destroy(_M_impl._M_start, _M_impl._M_finish); |
116 |
|
116 |
|
117 |
#else |
117 |
#else |
118 |
|
118 |
|
119 |
destroy(_M_start, _M_finish); |
119 |
destroy(_M_impl._M_start, _M_impl._M_finish); |
120 |
|
120 |
|
121 |
#endif |
121 |
#endif |
122 |
|
122 |
|
123 |
_M_deallocate(_M_start, _M_end_of_storage - _M_start); |
123 |
_M_deallocate(_M_impl._M_start, _M_impl._M_end_of_storage - _M_impl._M_start); |
124 |
|
124 |
|
125 |
_M_start = _M_finish = _M_end_of_storage = 0; |
125 |
_M_impl._M_start = _M_impl._M_finish = _M_impl._M_end_of_storage = 0; |
126 |
|
126 |
|
127 |
#else |
127 |
#else |
128 |
|
128 |
|