MCPcopy Create free account
hub / github.com/KTH-RPL/dufomap / set_option

Method set_option

src/indicators.hpp:2351–2357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2349
2350 template <typename T, details::ProgressBarOption id>
2351 void set_option(details::Setting<T, id> &&setting) {
2352 static_assert(!std::is_same<T, typename std::decay<decltype(details::get_value<id>(
2353 std::declval<Settings>()))>::type>::value,
2354 "Setting has wrong type!");
2355 std::lock_guard<std::mutex> lock(mutex_);
2356 get_value<id>() = std::move(setting).value;
2357 }
2358
2359 template <typename T, details::ProgressBarOption id>
2360 void set_option(const details::Setting<T, id> &setting) {

Callers

nothing calls this directly

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected