diff options
author | Alexander Kabaev <kan@FreeBSD.org> | 2004-07-28 03:12:05 +0000 |
---|---|---|
committer | Alexander Kabaev <kan@FreeBSD.org> | 2004-07-28 03:12:05 +0000 |
commit | ffeaf689a248da869b6bc8d4fd2233dfe513c060 (patch) | |
tree | 75ef0e6da73746d6849e25a0996ae34e1aeff51d /contrib/libstdc++/include/ext/numeric | |
parent | 9a63ad9273061dc19cbd117762e365ea9634e241 (diff) | |
download | src-ffeaf689a248da869b6bc8d4fd2233dfe513c060.tar.gz src-ffeaf689a248da869b6bc8d4fd2233dfe513c060.zip |
Gcc 3.4.2 20040728 C++ support bits.
Notes
Notes:
svn path=/vendor/gcc/dist/; revision=132720
Diffstat (limited to 'contrib/libstdc++/include/ext/numeric')
-rw-r--r-- | contrib/libstdc++/include/ext/numeric | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/contrib/libstdc++/include/ext/numeric b/contrib/libstdc++/include/ext/numeric index 6770461b5c6c..40edf07fe3da 100644 --- a/contrib/libstdc++/include/ext/numeric +++ b/contrib/libstdc++/include/ext/numeric @@ -60,9 +60,10 @@ */ #ifndef _EXT_NUMERIC -#define _EXT_NUMERIC +#define _EXT_NUMERIC 1 #pragma GCC system_header + #include <bits/concept_check.h> #include <numeric> @@ -72,7 +73,6 @@ namespace __gnu_cxx { // Returns __x ** __n, where __n >= 0. _Note that "multiplication" // is required to be associative, but not necessarily commutative. - template<typename _Tp, typename _Integer, typename _MonoidOperation> _Tp __power(_Tp __x, _Integer __n, _MonoidOperation __monoid_op) @@ -102,14 +102,13 @@ namespace __gnu_cxx __power(_Tp __x, _Integer __n) { return __power(__x, __n, std::multiplies<_Tp>()); } - // Alias for the internal name __power. Note that power is an extension, - // not part of the C++ standard. - /** * This is an SGI extension. * @ingroup SGIextensions * @doctodo */ + // Alias for the internal name __power. Note that power is an extension, + // not part of the C++ standard. template<typename _Tp, typename _Integer, typename _MonoidOperation> inline _Tp power(_Tp __x, _Integer __n, _MonoidOperation __monoid_op) @@ -125,27 +124,25 @@ namespace __gnu_cxx power(_Tp __x, _Integer __n) { return __power(__x, __n); } - // iota is not part of the C++ standard. It is an extension. - /** * This is an SGI extension. * @ingroup SGIextensions * @doctodo */ + // iota is not part of the C++ standard. It is an extension. template<typename _ForwardIter, typename _Tp> - void + void iota(_ForwardIter __first, _ForwardIter __last, _Tp __value) { // concept requirements - __glibcpp_function_requires(_Mutable_ForwardIteratorConcept<_ForwardIter>) - __glibcpp_function_requires(_ConvertibleConcept<_Tp, + __glibcxx_function_requires(_Mutable_ForwardIteratorConcept<_ForwardIter>) + __glibcxx_function_requires(_ConvertibleConcept<_Tp, typename std::iterator_traits<_ForwardIter>::value_type>) while (__first != __last) *__first++ = __value++; } - } // namespace __gnu_cxx -#endif /* _EXT_NUMERIC */ +#endif |