updated more tests affected by change in position of f

This commit is contained in:
joaquintides 2023-04-10 09:05:19 +02:00
parent c54151769f
commit 81a47ca88d
2 changed files with 8 additions and 11 deletions

View File

@ -55,11 +55,11 @@ namespace {
thread_runner(values, [&x, &num_inserts, &num_invokes](boost::span<T> s) {
for (auto& r : s) {
bool b = x.emplace_or_cvisit(
r.first.x_, r.second.x_,
[&num_invokes](typename X::value_type const& v) {
(void)v;
++num_invokes;
},
r.first.x_, r.second.x_);
});
if (b) {
++num_inserts;

View File

@ -144,12 +144,11 @@ namespace {
thread_runner(values, [&x, &num_inserts, &num_invokes](boost::span<T> s) {
for (auto& r : s) {
bool b = x.try_emplace_or_cvisit(
r.first,
r.first, r.second.x_,
[&num_invokes](typename X::value_type const& v) {
(void)v;
++num_invokes;
},
r.second.x_);
});
if (b) {
++num_inserts;
@ -211,12 +210,11 @@ namespace {
thread_runner(values, [&x, &num_inserts, &num_invokes](boost::span<T> s) {
for (auto& r : s) {
bool b = x.try_emplace_or_cvisit(
std::move(r.first),
std::move(r.first), r.second.x_,
[&num_invokes](typename X::value_type const& v) {
(void)v;
++num_invokes;
},
r.second.x_);
});
if (b) {
++num_inserts;
@ -283,12 +281,11 @@ namespace {
thread_runner(values, [&x, &num_inserts, &num_invokes](boost::span<T> s) {
for (auto& r : s) {
bool b = x.try_emplace_or_cvisit(
r.first.x_,
r.first.x_, r.second.x_,
[&num_invokes](typename X::value_type const& v) {
(void)v;
++num_invokes;
},
r.second.x_);
});
if (b) {
++num_inserts;