|
25 | 25 | | <<A-02,`A<T, void>`>>
|
26 | 26 | | Specialization for floating point types
|
27 | 27 |
|
| 28 | +| <<S-02,`S`>> |
| 29 | +| SFINAE with std::void_t |
| 30 | + |
| 31 | +| <<S-08,`S<T, std::void_t<T::a::b>>`>> |
| 32 | +| SFINAE with std::void_t |
| 33 | + |
28 | 34 | |===
|
29 | 35 | === Functions
|
30 | 36 |
|
@@ -136,6 +142,94 @@ class <<A-09,A>><T, void>;
|
136 | 142 |
|
137 | 143 |
|
138 | 144 |
|
| 145 | +[#S-02] |
| 146 | +== S |
| 147 | + |
| 148 | + |
| 149 | +SFINAE with std::void_t |
| 150 | + |
| 151 | +=== Synopsis |
| 152 | + |
| 153 | + |
| 154 | +Declared in `<sfinae.cpp>` |
| 155 | + |
| 156 | +[source,cpp,subs="verbatim,replacements,macros,-callouts"] |
| 157 | +---- |
| 158 | +template< |
| 159 | + class T, |
| 160 | + class = void> |
| 161 | +struct S; |
| 162 | +---- |
| 163 | + |
| 164 | +=== Member Functions |
| 165 | + |
| 166 | +[cols=1] |
| 167 | +|=== |
| 168 | +| Name |
| 169 | + |
| 170 | +| <<S-02-store,`store`>> |
| 171 | +|=== |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | +[#S-02-store] |
| 176 | +== <<S-02,S>>::store |
| 177 | + |
| 178 | + |
| 179 | +=== Synopsis |
| 180 | + |
| 181 | + |
| 182 | +Declared in `<sfinae.cpp>` |
| 183 | + |
| 184 | +[source,cpp,subs="verbatim,replacements,macros,-callouts"] |
| 185 | +---- |
| 186 | +void |
| 187 | +store(void const*); |
| 188 | +---- |
| 189 | + |
| 190 | +[#S-08] |
| 191 | +== S<T, std::void_t<T::a::b>> |
| 192 | + |
| 193 | + |
| 194 | +SFINAE with std::void_t |
| 195 | + |
| 196 | +=== Synopsis |
| 197 | + |
| 198 | + |
| 199 | +Declared in `<sfinae.cpp>` |
| 200 | + |
| 201 | +[source,cpp,subs="verbatim,replacements,macros,-callouts"] |
| 202 | +---- |
| 203 | +template<class T> |
| 204 | +struct <<S-02,S>><T, std::void_t<T::a::b>>; |
| 205 | +---- |
| 206 | + |
| 207 | +=== Member Functions |
| 208 | + |
| 209 | +[cols=1] |
| 210 | +|=== |
| 211 | +| Name |
| 212 | + |
| 213 | +| <<S-08-store,`store`>> |
| 214 | +|=== |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | +[#S-08-store] |
| 219 | +== <<S-08,S>><T, std::void_t<T::a::b>>::store |
| 220 | + |
| 221 | + |
| 222 | +=== Synopsis |
| 223 | + |
| 224 | + |
| 225 | +Declared in `<sfinae.cpp>` |
| 226 | + |
| 227 | +[source,cpp,subs="verbatim,replacements,macros,-callouts"] |
| 228 | +---- |
| 229 | +void |
| 230 | +store(void const*); |
| 231 | +---- |
| 232 | + |
139 | 233 | [#f1]
|
140 | 234 | == f1
|
141 | 235 |
|
|
0 commit comments