Skip to content

Commit

Permalink
Remove first_value_node from empty
Browse files Browse the repository at this point in the history
  • Loading branch information
kboyarinov committed Jan 20, 2022
1 parent 817f0bf commit eae61b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/oneapi/tbb/detail/_concurrent_unordered_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ class concurrent_unordered_base {
using difference_type = typename concurrent_unordered_base::difference_type;
using iterator = typename concurrent_unordered_base::const_iterator;

bool empty() const { return my_instance.first_value_node(my_begin_node) == my_end_node; }
bool empty() const { return my_begin_node == my_end_node; }

bool is_divisible() const {
return my_midpoint_node != my_end_node;
Expand Down

0 comments on commit eae61b9

Please sign in to comment.