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

Method set_option

src/indicators.hpp:2656–2662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2654
2655 template <typename T, details::ProgressBarOption id>
2656 void set_option(details::Setting<T, id> &&setting) {
2657 static_assert(!std::is_same<T, typename std::decay<decltype(details::get_value<id>(
2658 std::declval<Settings>()))>::type>::value,
2659 "Setting has wrong type!");
2660 std::lock_guard<std::mutex> lock(mutex_);
2661 get_value<id>() = std::move(setting).value;
2662 }
2663
2664 template <typename T, details::ProgressBarOption id>
2665 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