mimic++ v10.0.1
Loading...
Searching...
No Matches
UnwrapRef.hpp File Reference
#include "mimic++/config/Config.hpp"
#include "mimic++/utilities/Concepts.hpp"
#include <functional>
#include <type_traits>
Include dependency graph for UnwrapRef.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  mimicpp
namespace  mimicpp::util

Functions

template<typename T>
constexpr T & mimicpp::util::unwrap_ref (std::reference_wrapper< T > const ref) noexcept
 Unwraps the given std::reference_wrapper and returns the referenced object.
template<satisfies< std::is_lvalue_reference > T>
constexpr T & mimicpp::util::unwrap_ref (T &&ref) noexcept
 Overload accepting arbitrary lvalues, simply forwarding the reference.