ReactOS  0.4.14-dev-593-g1793dcc
iota.h
Go to the documentation of this file.
1 #ifndef IOTA_H
2 #define IOTA_H
3 
4 #include <numeric>
5 
6 //iota definition used in unit test
7 template <typename _It, typename _Tp>
8 void __iota(_It __first, _It __last, _Tp __val) {
9 #if defined (STLPORT) && !defined (_STLP_NO_EXTENSIONS)
10  iota(__first, __last, __val);
11 #else
12  while (__first != __last) {
13  *__first++ = __val++;
14  }
15 #endif
16 }
17 
18 #endif
_STLP_INLINE_LOOP void iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __val)
Definition: _numeric.h:174
void __iota(_It __first, _It __last, _Tp __val)
Definition: iota.h:8
_STLP_INLINE_LOOP _InputIter __last
Definition: _algo.h:68
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656