[meta] Minor
This commit is contained in:
parent
442f4a5891
commit
8570da1d74
|
@ -158,11 +158,11 @@ template<class T, typename B>
|
||||||
struct _hb_is_iterable
|
struct _hb_is_iterable
|
||||||
{ enum { value = false }; };
|
{ enum { value = false }; };
|
||||||
template<class T>
|
template<class T>
|
||||||
struct _hb_is_iterable<T, hb_bool_tt<(bool) sizeof (hb_declval<T> ().iter ())> >
|
struct _hb_is_iterable<T, hb_bool_tt<true || sizeof (hb_declval<T> ().iter ())> >
|
||||||
{ enum { value = true }; };
|
{ enum { value = true }; };
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
struct hb_is_iterable { enum { value = _hb_is_iterable<T, hb_true_t>::value }; };
|
struct hb_is_iterable { enum { value = _hb_is_iterable<T, hb_true_t>::value }; };
|
||||||
|
|
||||||
#define hb_is_iterable(Iterable) hb_is_iterable<Iterable>::value
|
#define hb_is_iterable(Iterable) hb_is_iterable<Iterable>::value
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ template <typename T, typename B>
|
||||||
struct _hb_null_size
|
struct _hb_null_size
|
||||||
{ enum { value = sizeof (T) }; };
|
{ enum { value = sizeof (T) }; };
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct _hb_null_size<T, hb_bool_tt<(bool) (1 + (unsigned int) T::min_size)> >
|
struct _hb_null_size<T, hb_bool_tt<true || sizeof (T::min_size)> >
|
||||||
{ enum { value = T::null_size }; };
|
{ enum { value = T::null_size }; };
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
@ -67,7 +67,7 @@ template <typename T, typename B>
|
||||||
struct _hb_static_size
|
struct _hb_static_size
|
||||||
{ enum { value = sizeof (T) }; };
|
{ enum { value = sizeof (T) }; };
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct _hb_static_size<T, hb_bool_tt<(bool) (1 + (unsigned int) T::min_size)> >
|
struct _hb_static_size<T, hb_bool_tt<true || sizeof (T::min_size)> >
|
||||||
{ enum { value = T::static_size }; };
|
{ enum { value = T::static_size }; };
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
@ -84,10 +84,10 @@ template <typename T, typename V, typename B>
|
||||||
struct _hb_assign
|
struct _hb_assign
|
||||||
{ static inline void value (T &o, const V v) { o = v; } };
|
{ static inline void value (T &o, const V v) { o = v; } };
|
||||||
template <typename T, typename V>
|
template <typename T, typename V>
|
||||||
struct _hb_assign<T, V, hb_bool_tt<(bool) (1 + (unsigned int) T::min_size)> >
|
struct _hb_assign<T, V, hb_bool_tt<true || sizeof (T::min_size)> >
|
||||||
{ static inline void value (T &o, const V v) { o.set (v); } };
|
{ static inline void value (T &o, const V v) { o.set (v); } };
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct _hb_assign<T, T, hb_bool_tt<(bool) (1 + (unsigned int) T::min_size)> >
|
struct _hb_assign<T, T, hb_bool_tt<true || sizeof (T::min_size)> >
|
||||||
{ static inline void value (T &o, const T v) { o = v; } };
|
{ static inline void value (T &o, const T v) { o = v; } };
|
||||||
|
|
||||||
template <typename T, typename V>
|
template <typename T, typename V>
|
||||||
|
|
Loading…
Reference in New Issue