33#ifndef _RWSTD_RW_REF_WRAP_INCLUDED
34# define _RWSTD_RW_REF_WRAP_INCLUDED
44template <
class _TypeT>
45class reference_wrapper
53 reference_wrapper (type& __x)
56 reference_wrapper (
const reference_wrapper& __x)
57 : _C_ptr (__x._C_ptr) { }
59 reference_wrapper& operator= (
const reference_wrapper& __x) {
65 operator type& ()
const {
77template <
class _TypeT>
78inline reference_wrapper<_TypeT>
81 return reference_wrapper<_TypeT> (__x);
84template <
class _TypeT>
85inline reference_wrapper<_TypeT>
86ref (reference_wrapper<_TypeT>& __x)
88 return reference_wrapper<_TypeT> (__x);
92template <
class _TypeT>
93inline reference_wrapper<const _TypeT>
94cref (
const _TypeT& __x)
96 return reference_wrapper<const _TypeT> (__x);
99template <
class _TypeT>
100inline reference_wrapper<const _TypeT>
101cref (reference_wrapper<const _TypeT>& __x)
103 return reference_wrapper<const _TypeT> (__x);
#define _RWSTD_NAMESPACE(name)
#define _RWSTD_ASSERT(ignore)