diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:18:58 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:18:58 +0000 |
commit | 53a420fba21cf1644972b34dcd811a43cdb8368d (patch) | |
tree | 66a19f6f8b65215772549a51d688492ab8addc0d /test/std/experimental/algorithms/alg.random.sample/sample.pass.cpp | |
parent | b50f1549701eb950921e5d6f2e55ba1a1dadbb43 (diff) |
Notes
Diffstat (limited to 'test/std/experimental/algorithms/alg.random.sample/sample.pass.cpp')
-rw-r--r-- | test/std/experimental/algorithms/alg.random.sample/sample.pass.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/std/experimental/algorithms/alg.random.sample/sample.pass.cpp b/test/std/experimental/algorithms/alg.random.sample/sample.pass.cpp index 1a9f9b099b20..531731791c5d 100644 --- a/test/std/experimental/algorithms/alg.random.sample/sample.pass.cpp +++ b/test/std/experimental/algorithms/alg.random.sample/sample.pass.cpp @@ -46,8 +46,8 @@ template <> struct TestExpectations<std::input_iterator_tag> : public ReservoirSampleExpectations {}; -template <template<class> class PopulationIteratorType, class PopulationItem, - template<class> class SampleIteratorType, class SampleItem> +template <template<class...> class PopulationIteratorType, class PopulationItem, + template<class...> class SampleIteratorType, class SampleItem> void test() { typedef PopulationIteratorType<PopulationItem *> PopulationIterator; typedef SampleIteratorType<SampleItem *> SampleIterator; @@ -68,13 +68,13 @@ void test() { assert(std::equal(oa, oa + os, oa1)); end = std::experimental::sample(PopulationIterator(ia), PopulationIterator(ia + is), - SampleIterator(oa), os, g); + SampleIterator(oa), os, std::move(g)); assert(end.base() - oa == std::min(os, is)); assert(std::equal(oa, oa + os, oa2)); } -template <template<class> class PopulationIteratorType, class PopulationItem, - template<class> class SampleIteratorType, class SampleItem> +template <template<class...> class PopulationIteratorType, class PopulationItem, + template<class...> class SampleIteratorType, class SampleItem> void test_empty_population() { typedef PopulationIteratorType<PopulationItem *> PopulationIterator; typedef SampleIteratorType<SampleItem *> SampleIterator; @@ -88,8 +88,8 @@ void test_empty_population() { assert(end.base() == oa); } -template <template<class> class PopulationIteratorType, class PopulationItem, - template<class> class SampleIteratorType, class SampleItem> +template <template<class...> class PopulationIteratorType, class PopulationItem, + template<class...> class SampleIteratorType, class SampleItem> void test_empty_sample() { typedef PopulationIteratorType<PopulationItem *> PopulationIterator; typedef SampleIteratorType<SampleItem *> SampleIterator; @@ -103,8 +103,8 @@ void test_empty_sample() { assert(end.base() == oa); } -template <template<class> class PopulationIteratorType, class PopulationItem, - template<class> class SampleIteratorType, class SampleItem> +template <template<class...> class PopulationIteratorType, class PopulationItem, + template<class...> class SampleIteratorType, class SampleItem> void test_small_population() { // The population size is less than the sample size. typedef PopulationIteratorType<PopulationItem *> PopulationIterator; |