Flutter Engine
The Flutter Engine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerator
b
c
d
e
f
g
h
k
l
m
n
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
third_party
skia
include
private
base
SkTypeTraits.h
Go to the documentation of this file.
1
// Copyright 2022 Google LLC
2
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3
4
#ifndef SkTypeTraits_DEFINED
5
#define SkTypeTraits_DEFINED
6
7
#include <memory>
8
#include <type_traits>
9
10
// Trait for identifying types which are relocatable via memcpy, for container optimizations.
11
template
<
typename
,
typename
=
void
>
12
struct
sk_has_trivially_relocatable_member
: std::false_type {};
13
14
// Types can declare themselves trivially relocatable with a public
15
// using sk_is_trivially_relocatable = std::true_type;
16
template
<
typename
T>
17
struct
sk_has_trivially_relocatable_member
<
T
,
std
::
void_t
<typename T::sk_is_trivially_relocatable>>
18
: T::sk_is_trivially_relocatable {};
19
20
// By default, all trivially copyable types are trivially relocatable.
21
template
<
typename
T>
22
struct
sk_is_trivially_relocatable
23
: std::disjunction<std::is_trivially_copyable<T>, sk_has_trivially_relocatable_member<T>>{};
24
25
// Here be some dragons: while technically not guaranteed, we count on all sane unique_ptr
26
// implementations to be trivially relocatable.
27
template
<
typename
T>
28
struct
sk_is_trivially_relocatable
<
std
::unique_ptr<T>> : std::true_type {};
29
30
template
<
typename
T>
31
inline
constexpr
bool
sk_is_trivially_relocatable_v
=
sk_is_trivially_relocatable<T>::value
;
32
33
#endif
// SkTypeTraits_DEFINED
sk_is_trivially_relocatable_v
constexpr bool sk_is_trivially_relocatable_v
Definition:
SkTypeTraits.h:31
std
Definition:
ref_ptr.h:256
T
#define T
Definition:
precompiler.cc:65
sk_has_trivially_relocatable_member
Definition:
SkTypeTraits.h:12
sk_is_trivially_relocatable
Definition:
SkTypeTraits.h:23
void_t
void void_t
Definition:
main.cc:65
Generated on Sun Jun 23 2024 21:56:03 for Flutter Engine by
1.9.4