Remove unused vltstd::exchange, should be using C++14 std::exchange instead

This commit is contained in:
Wilson Snyder 2024-03-10 22:32:51 -04:00
parent c0391990ad
commit 2c27f22900
1 changed files with 0 additions and 8 deletions

View File

@ -643,14 +643,6 @@ T const& as_const(T& v) VL_MT_SAFE {
return v;
}
// C++14's std::exchange
template <class T, class U = T>
T exchange(T& obj, U&& new_value) {
T old_value = std::move(obj);
obj = std::forward<U>(new_value);
return old_value;
}
}; // namespace vlstd
//=========================================================================