7 #if !defined(CNL_IMPL_WRAPPER_TO_REP_H)
8 #define CNL_IMPL_WRAPPER_TO_REP_H
10 #include "../num_traits/rep_of.h"
11 #include "../num_traits/to_rep.h"
12 #include "is_wrapper.h"
16 template<_impl::any_wrapper Number>
17 struct to_rep<Number> {
18 using rep_type = _impl::rep_of_t<Number>;
20 [[nodiscard]] constexpr
auto& operator()(Number& n)
const
25 [[nodiscard]] constexpr
auto const& operator()(Number
const& n)
const
30 [[nodiscard]] constexpr
auto&& operator()(Number&& n)
const
32 return std::forward<rep_type>(n._rep);
37 #endif // CNL_IMPL_WRAPPER_TO_REP_H