libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ __copy_n() [1/2]

template<typename _InputIterator, typename _Size, typename _OutputIterator>
std::pair< _InputIterator, _OutputIterator > __gnu_cxx::__copy_n ( _InputIterator __first,
_Size __count,
_OutputIterator __result,
std::input_iterator_tag  )

Definition at line 76 of file ext/algorithm.

79 {
80 for ( ; __count > 0; --__count)
81 {
82 *__result = *__first;
83 ++__first;
84 ++__result;
85 }
86 return std::pair<_InputIterator, _OutputIterator>(__first, __result);
87 }
pair(_T1, _T2) -> pair< _T1, _T2 >
Two pairs are equal iff their members are equal.

Referenced by copy_n().

Here is the caller graph for this function: