MCPcopy Create free account
hub / github.com/Bzi-Han/AndroidSurfaceImgui / StrongPointer

Class StrongPointer

modules/ANativeWindowCreator.h:121–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120 template <typename any_t>
121 struct StrongPointer
122 {
123 union {
124 any_t *pointer;
125 char padding[sizeof(std::max_align_t)];
126 };
127
128 inline any_t *operator->() const
129 {
130 return pointer;
131 }
132 inline any_t *get() const
133 {
134 return pointer;
135 }
136 inline explicit operator bool() const
137 {
138 return nullptr != pointer;
139 }
140 };
141
142 template <typename enum_t>
143 constexpr enum_t operator|(enum_t lhs, enum_t rhs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected