Flutter Engine
The Flutter Engine
impeller
geometry
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
10
namespace
impeller
{
11
12
template
<
class
F
,
13
class
I
,
14
class
= std::enable_if_t<std::is_floating_point_v<F> &&
15
std::is_integral_v<I>>>
16
struct
MixedOp_
:
public
std::true_type {};
17
18
template
<
class
F,
class
I>
19
using
MixedOp
=
typename
MixedOp_<F, I>::type
;
20
21
}
// namespace impeller
22
23
#endif
// FLUTTER_IMPELLER_GEOMETRY_TYPE_TRAITS_H_
F
#define F(x)
I
#define I
Definition:
kernel_binary_flowgraph.cc:25
impeller
Definition:
texture.h:18
impeller::MixedOp
typename MixedOp_< F, I >::type MixedOp
Definition:
type_traits.h:19
impeller::MixedOp_
Definition:
type_traits.h:16
Generated on Sun Jun 23 2024 21:55:02 for Flutter Engine by
1.9.4