Commit 2d9ca17b by Paolo Carlini Committed by Paolo Carlini

base.h (min, max): Mark inline.

2010-06-13  Paolo Carlini <paolo.carlini@oracle.com>

	* include/parallel/base.h (min, max): Mark inline.
	* include/parallel/set_operations.h (__parallel_set_operation):
	Uglify the Operation template parameter.

From-SVN: r160683
parent 7a40b8b1
2010-06-13 Paolo Carlini <paolo.carlini@oracle.com>
* include/parallel/base.h (min, max): Mark inline.
* include/parallel/set_operations.h (__parallel_set_operation):
Uglify the Operation template parameter.
2010-06-11 Paolo Carlini <paolo.carlini@oracle.com> 2010-06-11 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/shared_ptr.h (hash<shared_ptr>): Add. * include/bits/shared_ptr.h (hash<shared_ptr>): Add.
......
...@@ -140,13 +140,13 @@ namespace __gnu_parallel ...@@ -140,13 +140,13 @@ namespace __gnu_parallel
/** @brief Equivalent to std::min. */ /** @brief Equivalent to std::min. */
template<typename _Tp> template<typename _Tp>
const _Tp& inline const _Tp&
min(const _Tp& __a, const _Tp& __b) min(const _Tp& __a, const _Tp& __b)
{ return (__a < __b) ? __a : __b; } { return (__a < __b) ? __a : __b; }
/** @brief Equivalent to std::max. */ /** @brief Equivalent to std::max. */
template<typename _Tp> template<typename _Tp>
const _Tp& inline const _Tp&
max(const _Tp& __a, const _Tp& __b) max(const _Tp& __a, const _Tp& __b)
{ return (__a > __b) ? __a : __b; } { return (__a > __b) ? __a : __b; }
...@@ -300,7 +300,7 @@ namespace __gnu_parallel ...@@ -300,7 +300,7 @@ namespace __gnu_parallel
/** @brief _Iterator associated with __gnu_parallel::_PseudoSequence. /** @brief _Iterator associated with __gnu_parallel::_PseudoSequence.
* If features the usual random-access iterator functionality. * If features the usual random-access iterator functionality.
* @param _Tp Sequence _M_value type. * @param _Tp Sequence _M_value type.
* @param _DifferenceType Sequence difference type. * @param _DifferenceTp Sequence difference type.
*/ */
template<typename _Tp, typename _DifferenceTp> template<typename _Tp, typename _DifferenceTp>
class _PseudoSequenceIterator class _PseudoSequenceIterator
...@@ -353,7 +353,7 @@ namespace __gnu_parallel ...@@ -353,7 +353,7 @@ namespace __gnu_parallel
the same element. the same element.
* The copies are not stored explicitly, of course. * The copies are not stored explicitly, of course.
* @param _Tp Sequence _M_value type. * @param _Tp Sequence _M_value type.
* @param _DifferenceType Sequence difference type. * @param _DifferenceTp Sequence difference type.
*/ */
template<typename _Tp, typename _DifferenceTp> template<typename _Tp, typename _DifferenceTp>
class _PseudoSequence class _PseudoSequence
......
// -*- C++ -*- // -*- C++ -*-
// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. // Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the terms // software; you can redistribute it and/or modify it under the terms
...@@ -345,11 +345,11 @@ namespace __gnu_parallel ...@@ -345,11 +345,11 @@ namespace __gnu_parallel
template<typename _IIter, template<typename _IIter,
typename _OutputIterator, typename _OutputIterator,
typename Operation> typename _Operation>
_OutputIterator _OutputIterator
__parallel_set_operation(_IIter __begin1, _IIter __end1, __parallel_set_operation(_IIter __begin1, _IIter __end1,
_IIter __begin2, _IIter __end2, _IIter __begin2, _IIter __end2,
_OutputIterator __result, Operation __op) _OutputIterator __result, _Operation __op)
{ {
_GLIBCXX_CALL((__end1 - __begin1) + (__end2 - __begin2)) _GLIBCXX_CALL((__end1 - __begin1) + (__end2 - __begin2))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment