Fix non-reserved names in Parallel Mode headers
* include/parallel/algo.h: Replace non-reserved names. * include/parallel/multiway_merge.h: Likewise. * include/parallel/multiway_mergesort.h: Likewise. * include/parallel/numericfwd.h: Likewise. * testsuite/17_intro/names.cc: Add RAI to test macros. From-SVN: r276429
This commit is contained in:
parent
43a0ea7785
commit
577663511e
|
@ -1,3 +1,11 @@
|
||||||
|
2019-10-01 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
|
* include/parallel/algo.h: Replace non-reserved names.
|
||||||
|
* include/parallel/multiway_merge.h: Likewise.
|
||||||
|
* include/parallel/multiway_mergesort.h: Likewise.
|
||||||
|
* include/parallel/numericfwd.h: Likewise.
|
||||||
|
* testsuite/17_intro/names.cc: Add RAI to test macros.
|
||||||
|
|
||||||
2019-09-30 François Dumont <fdumont@gcc.gnu.org>
|
2019-09-30 François Dumont <fdumont@gcc.gnu.org>
|
||||||
|
|
||||||
* include/debug/array: Add C++20 constexpr to comparison operators.
|
* include/debug/array: Add C++20 constexpr to comparison operators.
|
||||||
|
|
|
@ -311,11 +311,11 @@ namespace __parallel
|
||||||
{ return _GLIBCXX_STD_A::unique_copy(__begin, __last, __out, __pred); }
|
{ return _GLIBCXX_STD_A::unique_copy(__begin, __last, __out, __pred); }
|
||||||
|
|
||||||
// Parallel unique_copy for random access iterators
|
// Parallel unique_copy for random access iterators
|
||||||
template<typename _RAIter, typename RandomAccessOutputIterator,
|
template<typename _RAIter, typename _RandomAccessOutputIterator,
|
||||||
typename _Predicate>
|
typename _Predicate>
|
||||||
RandomAccessOutputIterator
|
_RandomAccessOutputIterator
|
||||||
__unique_copy_switch(_RAIter __begin, _RAIter __last,
|
__unique_copy_switch(_RAIter __begin, _RAIter __last,
|
||||||
RandomAccessOutputIterator __out, _Predicate __pred,
|
_RandomAccessOutputIterator __out, _Predicate __pred,
|
||||||
random_access_iterator_tag, random_access_iterator_tag)
|
random_access_iterator_tag, random_access_iterator_tag)
|
||||||
{
|
{
|
||||||
if (_GLIBCXX_PARALLEL_CONDITION(
|
if (_GLIBCXX_PARALLEL_CONDITION(
|
||||||
|
|
|
@ -232,7 +232,7 @@ namespace __gnu_parallel
|
||||||
*
|
*
|
||||||
* @return End iterator of output sequence.
|
* @return End iterator of output sequence.
|
||||||
*/
|
*/
|
||||||
template<template<typename RAI, typename C> class iterator,
|
template<template<typename _RAI, typename _C> class iterator,
|
||||||
typename _RAIterIterator,
|
typename _RAIterIterator,
|
||||||
typename _RAIter3,
|
typename _RAIter3,
|
||||||
typename _DifferenceTp,
|
typename _DifferenceTp,
|
||||||
|
@ -351,7 +351,7 @@ namespace __gnu_parallel
|
||||||
*
|
*
|
||||||
* @return End iterator of output sequence.
|
* @return End iterator of output sequence.
|
||||||
*/
|
*/
|
||||||
template<template<typename RAI, typename C> class iterator,
|
template<template<typename _RAI, typename _C> class iterator,
|
||||||
typename _RAIterIterator,
|
typename _RAIterIterator,
|
||||||
typename _RAIter3,
|
typename _RAIter3,
|
||||||
typename _DifferenceTp,
|
typename _DifferenceTp,
|
||||||
|
@ -641,8 +641,8 @@ namespace __gnu_parallel
|
||||||
/** @brief Multi-way merging procedure for a high branching factor,
|
/** @brief Multi-way merging procedure for a high branching factor,
|
||||||
* requiring sentinels to exist.
|
* requiring sentinels to exist.
|
||||||
*
|
*
|
||||||
* @tparam UnguardedLoserTree _Loser Tree variant to use for the unguarded
|
* @tparam _UnguardedLoserTree Loser Tree variant to use for the unguarded
|
||||||
* merging.
|
* merging.
|
||||||
*
|
*
|
||||||
* @param __seqs_begin Begin iterator of iterator pair input sequence.
|
* @param __seqs_begin Begin iterator of iterator pair input sequence.
|
||||||
* @param __seqs_end End iterator of iterator pair input sequence.
|
* @param __seqs_end End iterator of iterator pair input sequence.
|
||||||
|
@ -653,7 +653,7 @@ namespace __gnu_parallel
|
||||||
*
|
*
|
||||||
* @return End iterator of output sequence.
|
* @return End iterator of output sequence.
|
||||||
*/
|
*/
|
||||||
template<typename UnguardedLoserTree,
|
template<typename _UnguardedLoserTree,
|
||||||
typename _RAIterIterator,
|
typename _RAIterIterator,
|
||||||
typename _RAIter3,
|
typename _RAIter3,
|
||||||
typename _DifferenceTp,
|
typename _DifferenceTp,
|
||||||
|
@ -687,7 +687,7 @@ namespace __gnu_parallel
|
||||||
// non-sentinel elements as we have.
|
// non-sentinel elements as we have.
|
||||||
++((*__s).second);
|
++((*__s).second);
|
||||||
|
|
||||||
__target_end = multiway_merge_loser_tree_unguarded<UnguardedLoserTree>
|
__target_end = multiway_merge_loser_tree_unguarded<_UnguardedLoserTree>
|
||||||
(__seqs_begin, __seqs_end, __target, __sentinel, __length, __comp);
|
(__seqs_begin, __seqs_end, __target, __sentinel, __length, __comp);
|
||||||
|
|
||||||
#if _GLIBCXX_PARALLEL_ASSERTIONS
|
#if _GLIBCXX_PARALLEL_ASSERTIONS
|
||||||
|
|
|
@ -264,19 +264,19 @@ namespace __gnu_parallel
|
||||||
{ __gnu_sequential::sort(__begin, __end, __comp); }
|
{ __gnu_sequential::sort(__begin, __end, __comp); }
|
||||||
};
|
};
|
||||||
|
|
||||||
template<bool __stable, typename Seq_RAIter,
|
template<bool __stable, typename _Seq_RAIter,
|
||||||
typename _RAIter, typename _Compare,
|
typename _RAIter, typename _Compare,
|
||||||
typename DiffType>
|
typename _DiffType>
|
||||||
struct __possibly_stable_multiway_merge
|
struct __possibly_stable_multiway_merge
|
||||||
{ };
|
{ };
|
||||||
|
|
||||||
template<typename Seq_RAIter, typename _RAIter,
|
template<typename _Seq_RAIter, typename _RAIter,
|
||||||
typename _Compare, typename _DiffType>
|
typename _Compare, typename _DiffType>
|
||||||
struct __possibly_stable_multiway_merge<true, Seq_RAIter,
|
struct __possibly_stable_multiway_merge<true, _Seq_RAIter,
|
||||||
_RAIter, _Compare, _DiffType>
|
_RAIter, _Compare, _DiffType>
|
||||||
{
|
{
|
||||||
void operator()(const Seq_RAIter& __seqs_begin,
|
void operator()(const _Seq_RAIter& __seqs_begin,
|
||||||
const Seq_RAIter& __seqs_end,
|
const _Seq_RAIter& __seqs_end,
|
||||||
const _RAIter& __target,
|
const _RAIter& __target,
|
||||||
_Compare& __comp,
|
_Compare& __comp,
|
||||||
_DiffType __length_am) const
|
_DiffType __length_am) const
|
||||||
|
@ -284,13 +284,13 @@ namespace __gnu_parallel
|
||||||
__length_am, __comp, sequential_tag()); }
|
__length_am, __comp, sequential_tag()); }
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename Seq_RAIter, typename _RAIter,
|
template<typename _Seq_RAIter, typename _RAIter,
|
||||||
typename _Compare, typename _DiffType>
|
typename _Compare, typename _DiffType>
|
||||||
struct __possibly_stable_multiway_merge<false, Seq_RAIter,
|
struct __possibly_stable_multiway_merge<false, _Seq_RAIter,
|
||||||
_RAIter, _Compare, _DiffType>
|
_RAIter, _Compare, _DiffType>
|
||||||
{
|
{
|
||||||
void operator()(const Seq_RAIter& __seqs_begin,
|
void operator()(const _Seq_RAIter& __seqs_begin,
|
||||||
const Seq_RAIter& __seqs_end,
|
const _Seq_RAIter& __seqs_end,
|
||||||
const _RAIter& __target,
|
const _RAIter& __target,
|
||||||
_Compare& __comp,
|
_Compare& __comp,
|
||||||
_DiffType __length_am) const
|
_DiffType __length_am) const
|
||||||
|
|
|
@ -149,17 +149,17 @@ namespace __parallel
|
||||||
_BinaryFunction2, __gnu_parallel::sequential_tag);
|
_BinaryFunction2, __gnu_parallel::sequential_tag);
|
||||||
|
|
||||||
template<typename _IIter1, typename _IIter2, typename _Tp,
|
template<typename _IIter1, typename _IIter2, typename _Tp,
|
||||||
typename BinaryFunction1, typename BinaryFunction2>
|
typename _BinaryFunction1, typename _BinaryFunction2>
|
||||||
_Tp
|
_Tp
|
||||||
inner_product(_IIter1, _IIter1, _IIter2, _Tp, BinaryFunction1,
|
inner_product(_IIter1, _IIter1, _IIter2, _Tp, _BinaryFunction1,
|
||||||
BinaryFunction2, __gnu_parallel::_Parallelism);
|
_BinaryFunction2, __gnu_parallel::_Parallelism);
|
||||||
|
|
||||||
template<typename _RAIter1, typename _RAIter2, typename _Tp,
|
template<typename _RAIter1, typename _RAIter2, typename _Tp,
|
||||||
typename BinaryFunction1, typename BinaryFunction2>
|
typename _BinaryFunction1, typename _BinaryFunction2>
|
||||||
_Tp
|
_Tp
|
||||||
__inner_product_switch(_RAIter1, _RAIter1, _RAIter2, _Tp, BinaryFunction1,
|
__inner_product_switch(_RAIter1, _RAIter1, _RAIter2, _Tp, _BinaryFunction1,
|
||||||
BinaryFunction2, random_access_iterator_tag,
|
_BinaryFunction2, random_access_iterator_tag,
|
||||||
random_access_iterator_tag,
|
random_access_iterator_tag,
|
||||||
__gnu_parallel::_Parallelism
|
__gnu_parallel::_Parallelism
|
||||||
= __gnu_parallel::parallel_unbalanced);
|
= __gnu_parallel::parallel_unbalanced);
|
||||||
|
|
||||||
|
|
|
@ -113,6 +113,7 @@
|
||||||
#define BidirectionalIterator BidirectionalIterator is not a reserved name
|
#define BidirectionalIterator BidirectionalIterator is not a reserved name
|
||||||
#define RandomAccessIterator RandomAccessIterator is not a reserved name
|
#define RandomAccessIterator RandomAccessIterator is not a reserved name
|
||||||
#define RandomAccessOutputIterator RandomAccessOutputIterator is not a reserved name
|
#define RandomAccessOutputIterator RandomAccessOutputIterator is not a reserved name
|
||||||
|
#define RAI RAI is not a reserved name
|
||||||
#define RAIter RAIter is not a reserved name
|
#define RAIter RAIter is not a reserved name
|
||||||
#define FwdIter FwdIter is not a reserved name
|
#define FwdIter FwdIter is not a reserved name
|
||||||
#define OutIter OutIter is not a reserved name
|
#define OutIter OutIter is not a reserved name
|
||||||
|
|
Loading…
Reference in New Issue