mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
Minor
This commit is contained in:
parent
24da1d0860
commit
ae8da4b61b
1 changed files with 6 additions and 3 deletions
|
@ -209,13 +209,16 @@ template <typename T>
|
|||
struct hb_is_iterable
|
||||
{
|
||||
private:
|
||||
|
||||
template <typename U>
|
||||
static auto test (int) -> decltype (hb_declval (U).iter (), hb_true_t ());
|
||||
static auto impl (hb_priority<1>) -> decltype (hb_declval (U).iter (), hb_true_t ());
|
||||
|
||||
template <typename>
|
||||
static hb_false_t test (...);
|
||||
static hb_false_t impl (hb_priority<0>);
|
||||
|
||||
public:
|
||||
enum { value = decltype (test<T> (0))::value };
|
||||
|
||||
enum { value = decltype (impl<T> (hb_prioritize))::value };
|
||||
};
|
||||
#define hb_is_iterable(Iterable) hb_is_iterable<Iterable>::value
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue