[algs] Add hb_identity
This commit is contained in:
parent
463cfb426f
commit
a699c6b17c
|
@ -31,9 +31,11 @@
|
||||||
#include "hb-null.hh"
|
#include "hb-null.hh"
|
||||||
|
|
||||||
|
|
||||||
/*
|
static HB_UNUSED struct
|
||||||
* Pair
|
{
|
||||||
*/
|
template <typename T> T
|
||||||
|
operator () (const T& v) const { return v; }
|
||||||
|
} hb_identity;
|
||||||
|
|
||||||
template <typename T1, typename T2>
|
template <typename T1, typename T2>
|
||||||
struct hb_pair_t
|
struct hb_pair_t
|
||||||
|
|
Loading…
Reference in New Issue