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> __iota(_It __first,_It __last,_Tp __val)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 19