[algs] Add hb_identity

This commit is contained in:
Behdad Esfahbod 2019-01-09 19:42:41 -08:00
parent 463cfb426f
commit a699c6b17c
1 changed files with 5 additions and 3 deletions

View File

@ -31,9 +31,11 @@
#include "hb-null.hh"
/*
* Pair
*/
static HB_UNUSED struct
{
template <typename T> T
operator () (const T& v) const { return v; }
} hb_identity;
template <typename T1, typename T2>
struct hb_pair_t