|
|
|
@ -34,6 +34,18 @@ |
|
|
|
|
#include "hb-null.hh" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct
|
|
|
|
|
{ |
|
|
|
|
template <typename T> T |
|
|
|
|
operator () (const T& v) const { return v; } |
|
|
|
|
} HB_FUNCOBJ (hb_identity); |
|
|
|
|
|
|
|
|
|
struct
|
|
|
|
|
{ |
|
|
|
|
template <typename T> bool |
|
|
|
|
operator () (const T& v) const { return bool (v); } |
|
|
|
|
} HB_FUNCOBJ (hb_bool); |
|
|
|
|
|
|
|
|
|
struct
|
|
|
|
|
{ |
|
|
|
|
/* Don't know how to set priority of following. Doesn't work right now. */ |
|
|
|
@ -59,19 +71,6 @@ struct |
|
|
|
|
} |
|
|
|
|
} HB_FUNCOBJ (hb_hash); |
|
|
|
|
|
|
|
|
|
struct
|
|
|
|
|
{ |
|
|
|
|
template <typename T> T |
|
|
|
|
operator () (const T& v) const { return v; } |
|
|
|
|
} HB_FUNCOBJ (hb_identity); |
|
|
|
|
|
|
|
|
|
struct
|
|
|
|
|
{ |
|
|
|
|
template <typename T> bool |
|
|
|
|
operator () (const T& v) const { return bool (v); } |
|
|
|
|
} HB_FUNCOBJ (hb_bool); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct
|
|
|
|
|
{ |
|
|
|
|
private: |
|
|
|
|