updated tests affected by change in position of f

This commit is contained in:
joaquintides
2023-04-09 20:41:15 +02:00
parent 8a4e987030
commit e73d5ecdd1
2 changed files with 8 additions and 11 deletions

View File

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

View File

@ -178,12 +178,11 @@ namespace {
thread_runner(values, [&x, &num_inserts, &num_invokes](boost::span<T> s) {
for (auto& r : s) {
bool b = x.try_emplace_or_visit(
r.first,
r.first, r.second.x_,
[&num_invokes](typename X::value_type& v) {
(void)v;
++num_invokes;
},
r.second.x_);
});
if (b) {
++num_inserts;
@ -249,12 +248,11 @@ namespace {
thread_runner(values, [&x, &num_inserts, &num_invokes](boost::span<T> s) {
for (auto& r : s) {
bool b = x.try_emplace_or_visit(
std::move(r.first),
std::move(r.first), r.second.x_,
[&num_invokes](typename X::value_type& v) {
(void)v;
++num_invokes;
},
r.second.x_);
});
if (b) {
++num_inserts;
@ -314,12 +312,11 @@ namespace {
thread_runner(values, [&x, &num_inserts, &num_invokes](boost::span<T> s) {
for (auto& r : s) {
bool b = x.try_emplace_or_visit(
r.first.x_,
r.first.x_, r.second.x_,
[&num_invokes](typename X::value_type& v) {
(void)v;
++num_invokes;
},
r.second.x_);
});
if (b) {
++num_inserts;