author | William Roberts <williamr@symbian.org> |
Thu, 22 Jul 2010 16:48:56 +0100 | |
branch | GCC_SURGE |
changeset 45 | 4b03adbd26ca |
parent 18 | 47c74d1534e1 |
parent 34 | 5fae379060a7 |
permissions | -rw-r--r-- |
31 | 1 |
/* |
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
* All rights reserved. |
|
34
5fae379060a7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4 |
*/ |
31 | 5 |
|
6 |
#ifndef IOTA_H |
|
7 |
#define IOTA_H |
|
8 |
||
9 |
#include <numeric> |
|
10 |
||
11 |
#ifdef __SYMBIAN32__ |
|
12 |
using std::iota; |
|
13 |
#endif // __SYMBIAN32__ |
|
14 |
||
15 |
//iota definition used in unit test |
|
16 |
template <typename _It, typename _Tp> |
|
17 |
void __iota(_It __first, _It __last, _Tp __val) { |
|
18 |
#if defined (STLPORT) && !defined (_STLP_NO_EXTENSIONS) |
|
19 |
iota(__first, __last, __val); |
|
20 |
#else |
|
21 |
while (__first != __last) { |
|
22 |
*__first++ = __val++; |
|
23 |
} |
|
24 |
#endif |
|
25 |
} |
|
26 |
||
27 |
#endif |