author | sl |
Tue, 10 Jun 2014 14:32:02 +0200 | |
changeset 1 | 260cb5ec6c19 |
permissions | -rw-r--r-- |
sl@0 | 1 |
/* |
sl@0 | 2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
sl@0 | 3 |
* All rights reserved. |
sl@0 | 4 |
*/ |
sl@0 | 5 |
|
sl@0 | 6 |
#ifndef IOTA_H |
sl@0 | 7 |
#define IOTA_H |
sl@0 | 8 |
|
sl@0 | 9 |
#include <numeric> |
sl@0 | 10 |
|
sl@0 | 11 |
#ifdef __SYMBIAN32__ |
sl@0 | 12 |
using std::iota; |
sl@0 | 13 |
#endif // __SYMBIAN32__ |
sl@0 | 14 |
|
sl@0 | 15 |
//iota definition used in unit test |
sl@0 | 16 |
template <typename _It, typename _Tp> |
sl@0 | 17 |
void __iota(_It __first, _It __last, _Tp __val) { |
sl@0 | 18 |
#if defined (STLPORT) && !defined (_STLP_NO_EXTENSIONS) |
sl@0 | 19 |
iota(__first, __last, __val); |
sl@0 | 20 |
#else |
sl@0 | 21 |
while (__first != __last) { |
sl@0 | 22 |
*__first++ = __val++; |
sl@0 | 23 |
} |
sl@0 | 24 |
#endif |
sl@0 | 25 |
} |
sl@0 | 26 |
|
sl@0 | 27 |
#endif |