Home
last modified time | relevance | path

Searched refs:OptionalStorage (Results 1 – 5 of 5) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DOptional.h32 template <typename T, bool IsPodLike> struct OptionalStorage { struct
36 OptionalStorage() = default; argument
38 OptionalStorage(const T &y) : hasVal(true) { new (storage.buffer) T(y); } in OptionalStorage() argument
39 OptionalStorage(const OptionalStorage &O) : hasVal(O.hasVal) { in OptionalStorage() argument
43 OptionalStorage(T &&y) : hasVal(true) { in OptionalStorage() function
46 OptionalStorage(OptionalStorage &&O) : hasVal(O.hasVal) { in OptionalStorage() function
52 OptionalStorage &operator=(T &&y) {
61 OptionalStorage &operator=(OptionalStorage &&O) {
75 OptionalStorage &operator=(const T &y) {
84 OptionalStorage &operator=(const OptionalStorage &O) {
[all …]
/external/v8/src/base/
Doptional.h40 struct OptionalStorage { struct
43 constexpr OptionalStorage() : empty_('\0') {} in OptionalStorage() function
45 constexpr explicit OptionalStorage(const T& value) in OptionalStorage() argument
49 explicit OptionalStorage(T&& value) in OptionalStorage() argument
54 explicit OptionalStorage(base::in_place_t, Args&&... args) in OptionalStorage() function
59 ~OptionalStorage() { in ~OptionalStorage() argument
74 struct OptionalStorage<T, true> { argument
77 constexpr OptionalStorage() : empty_('\0') {}
79 constexpr explicit OptionalStorage(const T& value)
83 explicit OptionalStorage(T&& value)
[all …]
/external/pdfium/third_party/base/
Doptional.h35 struct OptionalStorage { struct
38 constexpr OptionalStorage() : empty_('\0') {} in OptionalStorage() function
40 constexpr explicit OptionalStorage(const T& value) in OptionalStorage() argument
44 explicit OptionalStorage(T&& value) in OptionalStorage() argument
49 explicit OptionalStorage(in_place_t, Args&&... args) in OptionalStorage() function
54 ~OptionalStorage() { in ~OptionalStorage() argument
70 struct OptionalStorage<T, true> { argument
73 constexpr OptionalStorage() : empty_('\0') {}
75 constexpr explicit OptionalStorage(const T& value)
79 explicit OptionalStorage(T&& value)
[all …]
/external/libchrome/base/
Doptional.h134 struct OptionalStorage : OptionalStorageBase<T> {
149 OptionalStorage() = default;
151 OptionalStorage(const OptionalStorage& other) {
156 OptionalStorage(OptionalStorage&& other) noexcept(
164 struct OptionalStorage<T,
173 OptionalStorage() = default;
174 OptionalStorage(const OptionalStorage& other) = default;
176 OptionalStorage(OptionalStorage&& other) noexcept(
184 struct OptionalStorage<T,
193 OptionalStorage() = default;
[all …]
/external/perfetto/include/perfetto/base/
Doptional.h145 struct OptionalStorage : OptionalStorageBase<T> {
160 OptionalStorage() = default;
162 OptionalStorage(const OptionalStorage& other) : OptionalStorageBase<T>() {
167 OptionalStorage(OptionalStorage&& other) noexcept(
175 struct OptionalStorage<T, true /* trivially copy constructible */>
182 OptionalStorage() = default;
183 OptionalStorage(const OptionalStorage& other) = default;
185 OptionalStorage(OptionalStorage&& other) noexcept(
271 OptionalStorage<T> storage_;