59#pragma GCC system_header
66namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
68_GLIBCXX_BEGIN_NAMESPACE_VERSION
72 template<
typename _InputIter,
typename _Size,
typename _ForwardIter>
74 __uninitialized_copy_n(_InputIter __first, _Size __count,
77 _ForwardIter __cur = __result;
80 for (; __count > 0 ; --__count, ++__first, ++__cur)
87 __throw_exception_again;
91 template<
typename _RandomAccessIter,
typename _Size,
typename _ForwardIter>
93 __uninitialized_copy_n(_RandomAccessIter __first, _Size __count,
94 _ForwardIter __result,
97 _RandomAccessIter __last = __first + __count;
102 template<
typename _InputIter,
typename _Size,
typename _ForwardIter>
104 __uninitialized_copy_n(_InputIter __first, _Size __count,
105 _ForwardIter __result)
107 return __gnu_cxx::__uninitialized_copy_n(__first, __count, __result,
121 template<
typename _InputIter,
typename _Size,
typename _ForwardIter>
124 _ForwardIter __result)
126 return __gnu_cxx::__uninitialized_copy_n(__first, __count, __result,
133 template<
typename _InputIter,
typename _Size,
typename _ForwardIter,
136 __uninitialized_copy_n_a(_InputIter __first, _Size __count,
137 _ForwardIter __result,
140 _ForwardIter __cur = __result;
143 for (; __count > 0 ; --__count, ++__first, ++__cur)
144 __alloc.construct(&*__cur, *__first);
150 __throw_exception_again;
154 template<
typename _InputIter,
typename _Size,
typename _ForwardIter,
157 __uninitialized_copy_n_a(_InputIter __first, _Size __count,
158 _ForwardIter __result,
184 template <
class _ForwardIterator,
class _Tp
198_GLIBCXX_END_NAMESPACE_VERSION
std::pair< _InputIter, _ForwardIter > uninitialized_copy_n(_InputIter __first, _Size __count, _ForwardIter __result)
Copies the range [first,last) into result.
void distance(_InputIterator __first, _InputIterator __last, _Distance &__n)
_ForwardIterator uninitialized_copy(_InputIterator __first, _InputIterator __last, _ForwardIterator __result)
Copies the range [first,last) into result.
constexpr iterator_traits< _Iter >::iterator_category __iterator_category(const _Iter &)
ISO C++ entities toplevel namespace is std.
constexpr void _Construct(_Tp *__p, _Args &&... __args)
constexpr void _Destroy(_ForwardIterator __first, _ForwardIterator __last)
GNU extensions for public use.
The standard allocator, as per C++03 [20.4.1].
Traits class for iterators.
Struct holding two objects of arbitrary type.
Random-access iterators support a superset of bidirectional iterator operations.
temporary_buffer(_ForwardIterator __first, _ForwardIterator __last)
Requests storage large enough to hold a copy of [first,last).
~temporary_buffer()
Destroys objects and frees storage.