28 #ifndef BSL_EXCHANGE_HPP 29 #define BSL_EXCHANGE_HPP 52 template<
typename T,
typename U = T>
54 exchange(T &obj, U &&new_value) noexcept(
false)
57 obj = bsl::forward<U>(new_value);
constexpr T exchange(T &obj, U &&new_value) noexcept(false)
Replaces the value of obj with new_value and returns the old value of obj.
Definition: exchange.hpp:54
constexpr void move(fmt< V > &&val) noexcept=delete
Used to prevent a move of bsl::fmt as it must always be a temporary r-value.