Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
type_traits.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_IMPELLER_GEOMETRY_TYPE_TRAITS_H_
6#define FLUTTER_IMPELLER_GEOMETRY_TYPE_TRAITS_H_
7
8#include <type_traits>
9
10namespace impeller {
11
12template <class F,
13 class I,
14 class = std::enable_if_t<std::is_floating_point_v<F> &&
15 std::is_integral_v<I>>>
16struct MixedOp_ : public std::true_type {};
17
18template <class F, class I>
20
21} // namespace impeller
22
23#endif // FLUTTER_IMPELLER_GEOMETRY_TYPE_TRAITS_H_
#define F(x)
#define I
typename MixedOp_< F, I >::type MixedOp
Definition type_traits.h:19