ReactOS 0.4.15-dev-8109-gd7be748
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
7template <typename _It, typename _Tp>
8void __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 _InputIter __last
Definition: _algo.h:68
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
_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