Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement parallel::unique_copy. #2754

Merged
merged 8 commits into from Jul 12, 2017
2 changes: 2 additions & 0 deletions docs/CMakeLists.txt
Expand Up @@ -107,6 +107,7 @@ set(doxygen_dependencies
"${PROJECT_SOURCE_DIR}/hpx/parallel/algorithms/uninitialized_fill.hpp"
"${PROJECT_SOURCE_DIR}/hpx/parallel/algorithms/uninitialized_move.hpp"
"${PROJECT_SOURCE_DIR}/hpx/parallel/algorithms/uninitialized_value_construct.hpp"
"${PROJECT_SOURCE_DIR}/hpx/parallel/algorithms/unique.hpp"
"${PROJECT_SOURCE_DIR}/hpx/parallel/container_algorithms/copy.hpp"
"${PROJECT_SOURCE_DIR}/hpx/parallel/container_algorithms/for_each.hpp"
"${PROJECT_SOURCE_DIR}/hpx/parallel/container_algorithms/generate.hpp"
Expand All @@ -118,6 +119,7 @@ set(doxygen_dependencies
"${PROJECT_SOURCE_DIR}/hpx/parallel/container_algorithms/rotate.hpp"
"${PROJECT_SOURCE_DIR}/hpx/parallel/container_algorithms/sort.hpp"
"${PROJECT_SOURCE_DIR}/hpx/parallel/container_algorithms/transform.hpp"
"${PROJECT_SOURCE_DIR}/hpx/parallel/container_algorithms/unique.hpp"
"${PROJECT_SOURCE_DIR}/hpx/parallel/executors/auto_chunk_size.hpp"
"${PROJECT_SOURCE_DIR}/hpx/parallel/executors/dynamic_chunk_size.hpp"
"${PROJECT_SOURCE_DIR}/hpx/parallel/executors/execution_fwd.hpp"
Expand Down
5 changes: 5 additions & 0 deletions docs/manual/parallel_algorithms.qbk
Expand Up @@ -330,6 +330,11 @@ __hpx__ provides implementations of the following parallel algorithms:
[`<hpx/include/parallel_transform.hpp>`]
[[cpprefalgodocs transform]]
]
[[ [algoref unique_copy] ]
[Applies a function to a range of elements.]
[`<hpx/include/parallel_unique.hpp>`]
[[cpprefalgodocs unique_copy]]
]
]

[table Set operations on sorted sequences (In Header: `<hpx/include/parallel_algorithm.hpp>`)
Expand Down
13 changes: 13 additions & 0 deletions hpx/include/parallel_unique.hpp
@@ -0,0 +1,13 @@
// Copyright (c) 2017 Taeguk Kwon
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#if !defined(HPX_PARALLEL_UNIQUE_JUL_07_2017_1631PM)
#define HPX_PARALLEL_UNIQUE_JUL_07_2017_1631PM

#include <hpx/parallel/algorithms/unique.hpp>
#include <hpx/parallel/container_algorithms/unique.hpp>

#endif

6 changes: 3 additions & 3 deletions hpx/parallel/algorithms/partition.hpp
Expand Up @@ -548,9 +548,9 @@ namespace hpx { namespace parallel { inline namespace v1
/// \a tagged_tuple<tag::in(InIter), tag::out1(OutIter1), tag::out2(OutIter2)>
/// otherwise.
/// The \a partition_copy algorithm returns the tuple of
/// the input iterator \a last,
/// the output iterator to the end of the \a dest_true range, and
/// the output iterator to the end of the \a dest_false range.
/// the source iterator \a last,
/// the destination iterator to the end of the \a dest_true range, and
/// the destination iterator to the end of the \a dest_false range.
///
template <typename ExPolicy, typename FwdIter1,
typename FwdIter2, typename FwdIter3,
Expand Down