Flutter Impeller
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 #pragma once
6 
7 #include <type_traits>
8 
9 namespace impeller {
10 
11 template <class F,
12  class I,
13  class = std::enable_if_t<std::is_floating_point_v<F> &&
14  std::is_integral_v<I>>>
15 struct MixedOp_ : public std::true_type {};
16 
17 template <class F, class I>
18 using MixedOp = typename MixedOp_<F, I>::type;
19 
20 } // namespace impeller
impeller::MixedOp_
Definition: type_traits.h:15
impeller::MixedOp
typename MixedOp_< F, I >::type MixedOp
Definition: type_traits.h:18
impeller
Definition: aiks_context.cc:10