Skip to content

Commit

Permalink
GH-2057 Use any_of instead of find_if
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Mar 23, 2024
1 parent 51feb05 commit dac12e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/chain/block_header.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ namespace eosio { namespace chain {
}

bool block_header::contains_header_extension(uint16_t extension_id)const {
return std::find_if(header_extensions.cbegin(), header_extensions.cend(), [&](const auto& p) {
return std::any_of(header_extensions.cbegin(), header_extensions.cend(), [&](const auto& p) {
return p.first == extension_id;
}) != header_extensions.cend();
});
}

} }

0 comments on commit dac12e5

Please sign in to comment.