6 #include <cds/details/defs.h>
7 #include <boost/ref.hpp>
16 struct unwrap_reference
26 struct unwrap_reference<T&>
29 static T& apply( T& f )
36 struct unwrap_reference<boost::reference_wrapper<T> >
39 static T& apply( boost::reference_wrapper<T> f )
47 static inline typename details::unwrap_reference<T>::type unref( T f )
49 return cds::details::unwrap_reference<T>::apply(f);
54 #endif // #ifndef __CDS_REF_H