@@ -299,7 +299,8 @@ struct convert_data_type_impl<T, B, enable_if_t<is_vgentype<T>::value, T>> {
299
299
template <typename T, typename B>
300
300
using convert_data_type = convert_data_type_impl<T, B, T>;
301
301
302
- // Try to get pointer_t (legacy) or pointer, otherwise T
302
+ // TryToGetPointerT<T>::type is T::pointer_t (legacy) or T::pointer if those
303
+ // exist, otherwise T.
303
304
template <typename T> class TryToGetPointerT {
304
305
static T check (...);
305
306
template <typename A> static typename A::pointer_t check (const A &);
@@ -311,7 +312,8 @@ template <typename T> class TryToGetPointerT {
311
312
std::is_pointer<T>::value || !std::is_same<T, type>::value;
312
313
};
313
314
314
- // Try to get element_type or value_type, otherwise T
315
+ // TryToGetElementType<T>::type is T::element_type or T::value_type if those
316
+ // exist, otherwise T.
315
317
template <typename T> class TryToGetElementType {
316
318
static T check (...);
317
319
template <typename A> static typename A::element_type check (const A &);
@@ -322,7 +324,7 @@ template <typename T> class TryToGetElementType {
322
324
static constexpr bool value = !std::is_same<T, type>::value;
323
325
};
324
326
325
- // Try to get vector_t, otherwise T
327
+ // TryToGetVectorT<T>::type is T:: vector_t if that exists , otherwise T.
326
328
template <typename T> class TryToGetVectorT {
327
329
static T check (...);
328
330
template <typename A> static typename A::vector_t check (const A &);
0 commit comments