60 #pragma GCC system_header
65 namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
67 _GLIBCXX_BEGIN_NAMESPACE_VERSION
74 template<
typename _InputIter,
typename _Size,
typename _ForwardIter>
75 pair<_InputIter, _ForwardIter>
76 __uninitialized_copy_n(_InputIter __first, _Size __count,
79 _ForwardIter __cur = __result;
82 for (; __count > 0 ; --__count, ++__first, ++__cur)
84 return pair<_InputIter, _ForwardIter>(__first, __cur);
89 __throw_exception_again;
93 template<
typename _RandomAccessIter,
typename _Size,
typename _ForwardIter>
94 inline pair<_RandomAccessIter, _ForwardIter>
95 __uninitialized_copy_n(_RandomAccessIter __first, _Size __count,
96 _ForwardIter __result,
99 _RandomAccessIter __last = __first + __count;
100 return (pair<_RandomAccessIter, _ForwardIter>
104 template<
typename _InputIter,
typename _Size,
typename _ForwardIter>
105 inline pair<_InputIter, _ForwardIter>
106 __uninitialized_copy_n(_InputIter __first, _Size __count,
107 _ForwardIter __result)
108 {
return __gnu_cxx::__uninitialized_copy_n(__first, __count, __result,
121 template<
typename _InputIter,
typename _Size,
typename _ForwardIter>
122 inline pair<_InputIter, _ForwardIter>
124 _ForwardIter __result)
125 {
return __gnu_cxx::__uninitialized_copy_n(__first, __count, __result,
131 template<
typename _InputIter,
typename _Size,
typename _ForwardIter,
133 pair<_InputIter, _ForwardIter>
134 __uninitialized_copy_n_a(_InputIter __first, _Size __count,
135 _ForwardIter __result,
138 _ForwardIter __cur = __result;
141 for (; __count > 0 ; --__count, ++__first, ++__cur)
142 __alloc.construct(&*__cur, *__first);
143 return pair<_InputIter, _ForwardIter>(__first, __cur);
148 __throw_exception_again;
152 template<
typename _InputIter,
typename _Size,
typename _ForwardIter,
154 inline pair<_InputIter, _ForwardIter>
155 __uninitialized_copy_n_a(_InputIter __first, _Size __count,
156 _ForwardIter __result,
182 template <
class _ForwardIterator,
class _Tp
183 =
typename std::iterator_traits<_ForwardIterator>::value_type >
194 _GLIBCXX_END_NAMESPACE_VERSION