1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/cppstdlib/stl/test/unit/iota.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,27 @@
1.4 +/*
1.5 +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 + */
1.8 +
1.9 +#ifndef IOTA_H
1.10 +#define IOTA_H
1.11 +
1.12 +#include <numeric>
1.13 +
1.14 +#ifdef __SYMBIAN32__
1.15 +using std::iota;
1.16 +#endif // __SYMBIAN32__
1.17 +
1.18 +//iota definition used in unit test
1.19 +template <typename _It, typename _Tp>
1.20 +void __iota(_It __first, _It __last, _Tp __val) {
1.21 +#if defined (STLPORT) && !defined (_STLP_NO_EXTENSIONS)
1.22 + iota(__first, __last, __val);
1.23 +#else
1.24 + while (__first != __last) {
1.25 + *__first++ = __val++;
1.26 + }
1.27 +#endif
1.28 +}
1.29 +
1.30 +#endif