ref.h
Go to the documentation of this file.00001 #ifndef _SIGX_AUTO_REF_H_
00002 #define _SIGX_AUTO_REF_H_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00030 #include <sigc++/reference_wrapper.h>
00031
00032
00033 namespace sigx
00034 {
00035
00036
00037 template <class T_type>
00038 sigc::reference_wrapper<T_type> ref(T_type& v)
00039 {
00040 return sigc::reference_wrapper<T_type>(v);
00041 }
00042
00043 template <class T_type>
00044 sigc::const_reference_wrapper<T_type> ref(const T_type& v)
00045 {
00046 return sigc::const_reference_wrapper<T_type>(v);
00047 }
00048
00049
00050 template <class T_type>
00051 sigc::reference_wrapper<T_type> ref(const sigc::reference_wrapper<T_type>& v)
00052 {
00053 return sigc::reference_wrapper<T_type>(v);
00054 }
00055
00056 template <class T_type>
00057 sigc::const_reference_wrapper<T_type> ref(const sigc::const_reference_wrapper<T_type>& v)
00058 {
00059 return sigc::const_reference_wrapper<T_type>(v);
00060 }
00061
00062
00063 }
00064
00065
00066 #endif // file guard