[refwrap.helpers] (original) (raw)
20 General utilities library [utilities]
20.14 Function objects [function.objects]
20.14.6 Class template reference_wrapper [refwrap]
20.14.6.6 Helper functions [refwrap.helpers]
The template parameter T of the following ref and cref function templates may be an incomplete type.
template<class T> constexpr reference_wrapper<T> ref(T& t) noexcept;
Returns: reference_wrapper<T>(t).
template<class T> constexpr reference_wrapper<T> ref(reference_wrapper<T> t) noexcept;
template<class T> constexpr reference_wrapper<const T> cref(const T& t) noexcept;
Returns: reference_wrapper <const T>(t).
template<class T> constexpr reference_wrapper<const T> cref(reference_wrapper<T> t) noexcept;