Skip to content

Commit

Permalink
Removed typedef for the value type of a t8_element_array_iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas997 committed Oct 21, 2024
1 parent 653b36e commit 8f4cfc4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/t8_forest/t8_forest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1459,13 +1459,10 @@ t8_forest_bin_search_lower (const t8_element_array_t *elements, const t8_lineari
return -1;
}

/* A typedef for the value type of the t8_element_array_t iterator. */
using element_ptr_t = t8_element_t *;

/* We search for the first element in the array that is greater than the given element id. */
auto elem_iter
= std::upper_bound (t8_element_array_begin (elements), t8_element_array_end (elements), element_id,
[&maxlevel, &ts] (const t8_linearidx_t element_id_, const element_ptr_t &elem_ptr) {
[&maxlevel, &ts] (const t8_linearidx_t element_id_, const t8_element_array_iterator::value_type &elem_ptr) {
return (element_id_ < ts->t8_element_get_linear_id (elem_ptr, maxlevel));
});

Expand Down

0 comments on commit 8f4cfc4

Please sign in to comment.