Skip to content

Commit

Permalink
Remove std::experimental::sample; use std::sample instead. See https:…
Browse files Browse the repository at this point in the history
  • Loading branch information
mclow committed Feb 1, 2018
1 parent 57e9f44 commit 14082fc
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 259 deletions.
17 changes: 2 additions & 15 deletions libcxx/include/experimental/algorithm
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ inline namespace fundamentals_v1 {
template <class ForwardIterator, class Searcher>
ForwardIterator search(ForwardIterator first, ForwardIterator last,
const Searcher &searcher);
template <class PopulationIterator, class SampleIterator, class Distance,
class UniformRandomNumberGenerator>
SampleIterator sample(PopulationIterator first, PopulationIterator last,
SampleIterator out, Distance n,
UniformRandomNumberGenerator &&g);
// sample removed because it's now part of C++17
} // namespace fundamentals_v1
} // namespace experimental
Expand Down Expand Up @@ -56,16 +53,6 @@ _LIBCPP_INLINE_VISIBILITY
_ForwardIterator search(_ForwardIterator __f, _ForwardIterator __l, const _Searcher &__s)
{ return __s(__f, __l).first; }


template <class _PopulationIterator, class _SampleIterator, class _Distance,
class _UniformRandomNumberGenerator>
inline _LIBCPP_INLINE_VISIBILITY
_SampleIterator sample(_PopulationIterator __first, _PopulationIterator __last,
_SampleIterator __output_iter, _Distance __n,
_UniformRandomNumberGenerator &&__g) {
return _VSTD::__sample(__first, __last, __output_iter, __n, __g);
}

_LIBCPP_END_NAMESPACE_LFTS

_LIBCPP_POP_MACROS
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 14082fc

Please sign in to comment.