stl_algo.h (random_shuffle): Only define for hosted implementations.
* include/bits/stl_algo.h (random_shuffle): Only define for hosted implementations. From-SVN: r222542
This commit is contained in:
parent
0088583b25
commit
2e7e2075d1
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2015-04-28 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
|
* include/bits/stl_algo.h (random_shuffle): Only define for hosted
|
||||||
|
implementations.
|
||||||
|
|
||||||
2015-04-28 Jonathan Wakely <jwakely@redhat.com>
|
2015-04-28 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
* Makefile.am (SUBDIRS): Move python to hosted_source.
|
* Makefile.am (SUBDIRS): Move python to hosted_source.
|
||||||
|
|
|
@ -4420,6 +4420,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO
|
||||||
std::__iterator_category(__result));
|
std::__iterator_category(__result));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if _GLIBCXX_HOSTED
|
||||||
/**
|
/**
|
||||||
* @brief Randomly shuffle the elements of a sequence.
|
* @brief Randomly shuffle the elements of a sequence.
|
||||||
* @ingroup mutating_algorithms
|
* @ingroup mutating_algorithms
|
||||||
|
@ -4450,6 +4451,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO
|
||||||
std::iter_swap(__i, __j);
|
std::iter_swap(__i, __j);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Shuffle the elements of a sequence using a random number
|
* @brief Shuffle the elements of a sequence using a random number
|
||||||
|
|
Loading…
Add table
Reference in a new issue