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

Method set_option

src/indicators.hpp:2943–2949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2941
2942 template <typename T, details::ProgressBarOption id>
2943 void set_option(details::Setting<T, id> &&setting) {
2944 static_assert(!std::is_same<T, typename std::decay<decltype(details::get_value<id>(
2945 std::declval<Settings>()))>::type>::value,
2946 "Setting has wrong type!");
2947 std::lock_guard<std::mutex> lock(mutex_);
2948 get_value<id>() = std::move(setting).value;
2949 }
2950
2951 template <typename T, details::ProgressBarOption id>
2952 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