Skip to content

Commit

Permalink
Rename output iterator types
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Dec 3, 2024
1 parent 1bad268 commit bd2e1db
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
8 changes: 4 additions & 4 deletions include/cuco/detail/static_map/static_map.inl
Original file line number Diff line number Diff line change
Expand Up @@ -620,13 +620,13 @@ template <class Key,
class ProbingScheme,
class Allocator,
class Storage>
template <typename InputIt, typename OutputIt1, typename OutputIt2>
std::pair<OutputIt1, OutputIt2>
template <typename InputIt, typename OutputProbeIt, typename OutputMatchIt>
std::pair<OutputProbeIt, OutputMatchIt>
static_map<Key, T, Extent, Scope, KeyEqual, ProbingScheme, Allocator, Storage>::retrieve(
InputIt first,
InputIt last,
OutputIt1 output_probe,
OutputIt2 output_match,
OutputProbeIt output_probe,
OutputMatchIt output_match,
cuda::stream_ref stream) const
{
return impl_->retrieve(first, last, output_probe, output_match, this->ref(op::retrieve), stream);
Expand Down
8 changes: 4 additions & 4 deletions include/cuco/detail/static_multimap/static_multimap.inl
Original file line number Diff line number Diff line change
Expand Up @@ -447,13 +447,13 @@ template <class Key,
class ProbingScheme,
class Allocator,
class Storage>
template <typename InputIt, typename OutputIt1, typename OutputIt2>
std::pair<OutputIt1, OutputIt2>
template <typename InputIt, typename OutputProbeIt, typename OutputMatchIt>
std::pair<OutputProbeIt, OutputMatchIt>
static_multimap<Key, T, Extent, Scope, KeyEqual, ProbingScheme, Allocator, Storage>::retrieve(
InputIt first,
InputIt last,
OutputIt1 output_probe,
OutputIt2 output_match,
OutputProbeIt output_probe,
OutputMatchIt output_match,
cuda::stream_ref stream) const
{
return impl_->retrieve(first, last, output_probe, output_match, this->ref(op::retrieve), stream);
Expand Down
20 changes: 10 additions & 10 deletions include/cuco/static_map.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -929,10 +929,10 @@ class static_map {
* @note Behavior is undefined if the given key has multiple matches in the set.
*
* @tparam InputIt Device accessible input iterator
* @tparam OutputIt1 Device accessible output iterator whose `value_type` can be constructed from
* `ProbeKey`
* @tparam OutputIt2 Device accessible output iterator whose `value_type` can be constructed from
* map's `value_type`
* @tparam OutputProbeIt Device accessible output iterator whose `value_type` can be constructed
* from `ProbeKey`
* @tparam OutputMatchIt Device accessible output iterator whose `value_type` can be constructed
* from map's `value_type`
*
* @param first Beginning of the sequence of probe keys
* @param last End of the sequence of probe keys
Expand All @@ -942,12 +942,12 @@ class static_map {
*
* @return The iterator indicating the last valid pair in the output
*/
template <typename InputIt, typename OutputIt1, typename OutputIt2>
std::pair<OutputIt1, OutputIt2> retrieve(InputIt first,
InputIt last,
OutputIt1 output_probe,
OutputIt2 output_match,
cuda::stream_ref stream = {}) const;
template <typename InputIt, typename OutputProbeIt, typename OutputMatchIt>
std::pair<OutputProbeIt, OutputMatchIt> retrieve(InputIt first,
InputIt last,
OutputProbeIt output_probe,
OutputMatchIt output_match,
cuda::stream_ref stream = {}) const;

/**
* @brief Retrieves all of the keys and their associated values contained in the map
Expand Down
20 changes: 10 additions & 10 deletions include/cuco/static_multimap.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -680,10 +680,10 @@ class static_multimap {
* @note Behavior is undefined if the given key has multiple matches in the set.
*
* @tparam InputIt Device accessible input iterator
* @tparam OutputIt1 Device accessible output iterator whose `value_type` can be constructed from
* `ProbeKey`
* @tparam OutputIt2 Device accessible output iterator whose `value_type` can be constructed from
* multimap's `value_type`
* @tparam OutputProbeIt Device accessible output iterator whose `value_type` can be constructed
* from `ProbeKey`
* @tparam OutputMatchIt Device accessible output iterator whose `value_type` can be constructed
* from multimap's `value_type`
*
* @param first Beginning of the sequence of probe keys
* @param last End of the sequence of probe keys
Expand All @@ -693,12 +693,12 @@ class static_multimap {
*
* @return The iterator indicating the last valid pair in the output
*/
template <typename InputIt, typename OutputIt1, typename OutputIt2>
std::pair<OutputIt1, OutputIt2> retrieve(InputIt first,
InputIt last,
OutputIt1 output_probe,
OutputIt2 output_match,
cuda::stream_ref stream = {}) const;
template <typename InputIt, typename OutputProbeIt, typename OutputMatchIt>
std::pair<OutputProbeIt, OutputMatchIt> retrieve(InputIt first,
InputIt last,
OutputProbeIt output_probe,
OutputMatchIt output_match,
cuda::stream_ref stream = {}) const;

/**
* @brief Retrieves all of the keys and their associated values contained in the multimap
Expand Down

0 comments on commit bd2e1db

Please sign in to comment.