00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059 #ifndef STLSOFT_INCL_H_STLSOFT
00060 # include "stlsoft.h"
00061 #endif
00062
00063
00064
00065
00066
00067 #ifndef _STLSOFT_NO_NAMESPACE
00068 namespace stlsoft
00069 {
00070 #endif
00071
00072
00073
00074
00075
00076 #ifdef __STLSOFT_CF_TEMPLATE_PARTIAL_SPECIALISATION_SUPPORT
00077
00078 template <typename T>
00079 struct base_type_traits
00080 {
00081 enum { is_pointer = 0 };
00082 enum { is_reference = 0 };
00083 enum { is_const = 0 };
00084 enum { is_volatile = 0 };
00085
00086 typedef T base_type;
00087 typedef T cv_type;
00088 };
00089
00090 # ifndef __STLSOFT_DOCUMENTATION_SKIP_SECTION
00091
00092 template <typename T>
00093 struct base_type_traits<T*>
00094 {
00095 enum { is_pointer = 1 };
00096 enum { is_reference = 0 };
00097 enum { is_const = 0 };
00098 enum { is_volatile = 0 };
00099
00100 typedef T base_type;
00101 typedef T cv_type;
00102 };
00103
00104 template <typename T>
00105 struct base_type_traits<T const*>
00106 {
00107 enum { is_pointer = 1 };
00108 enum { is_reference = 0 };
00109 enum { is_const = 1 };
00110 enum { is_volatile = 0 };
00111
00112 typedef T base_type;
00113 typedef T const cv_type;
00114 };
00115
00116 template <typename T>
00117 struct base_type_traits<T volatile*>
00118 {
00119 enum { is_pointer = 1 };
00120 enum { is_reference = 0 };
00121 enum { is_const = 0 };
00122 enum { is_volatile = 1 };
00123
00124 typedef T base_type;
00125 typedef T volatile cv_type;
00126 };
00127
00128 template <typename T>
00129 struct base_type_traits<T const volatile*>
00130 {
00131 enum { is_pointer = 1 };
00132 enum { is_reference = 0 };
00133 enum { is_const = 1 };
00134 enum { is_volatile = 1 };
00135
00136 typedef T base_type;
00137 typedef T const volatile cv_type;
00138 };
00139
00140 template <typename T>
00141 struct base_type_traits<T&>
00142 {
00143 enum { is_pointer = 0 };
00144 enum { is_reference = 1 };
00145 enum { is_const = 0 };
00146 enum { is_volatile = 0 };
00147
00148 typedef T base_type;
00149 typedef T cv_type;
00150 };
00151
00152 template <typename T>
00153 struct base_type_traits<T const&>
00154 {
00155 enum { is_pointer = 0 };
00156 enum { is_reference = 1 };
00157 enum { is_const = 1 };
00158 enum { is_volatile = 0 };
00159
00160 typedef T base_type;
00161 typedef T const cv_type;
00162 };
00163
00164 template <typename T>
00165 struct base_type_traits<T volatile&>
00166 {
00167 enum { is_pointer = 0 };
00168 enum { is_reference = 1 };
00169 enum { is_const = 0 };
00170 enum { is_volatile = 1 };
00171
00172 typedef T base_type;
00173 typedef T volatile cv_type;
00174 };
00175
00176 template <typename T>
00177 struct base_type_traits<T const volatile&>
00178 {
00179 enum { is_pointer = 0 };
00180 enum { is_reference = 1 };
00181 enum { is_const = 1 };
00182 enum { is_volatile = 1 };
00183
00184 typedef T base_type;
00185 typedef T const volatile cv_type;
00186 };
00187
00188 # endif
00189
00190 #else
00191
00192 #endif // __STLSOFT_CF_TEMPLATE_PARTIAL_SPECIALISATION_SUPPORT
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206