HomeSort by relevance Sort by last modified time
    Searched full:deleter (Results 26 - 50 of 340) sorted by null

12 3 4 5 6 7 8 91011>>

  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/
function_type_default_deleter.fail.cpp 21 struct Deleter {
36 SPtr<2> s2(getFn<2>(), Deleter{}); // OK
37 SPtr<3> s3(nullptr, Deleter{}); // OK
  /hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
VehicleObjectPool.h 47 struct Deleter {
50 Deleter(const OnDeleteFunc& f) : mOnDelete(f) {};
52 Deleter() = default;
53 Deleter(const Deleter&) = default;
67 using recyclable_ptr = typename std::unique_ptr<T, Deleter<T>>;
111 const Deleter<T>& getDeleter() {
113 Deleter<T> *d = new Deleter<T>(std::bind(
127 std::unique_ptr<Deleter<T>> mDeleter
    [all...]
  /external/swiftshader/third_party/stlport-cpp11-extension/
memory 64 // TODO(haining) Work with Deleter
240 // Default deleter for pointer types.
246 // Default deleter for array types.
261 template <typename T, typename Deleter>
266 explicit UniquePtrBase(T* ptr, Deleter d) : mPtr(ptr), mDeleter(d) {}
292 Deleter& get_deleter() { return mDeleter; }
293 const Deleter& get_deleter() const { return mDeleter; }
315 Deleter mDeleter;
321 template <typename T, typename Deleter = DefaultDelete<T> >
322 class unique_ptr : public workaround_internal::UniquePtrBase<T, Deleter> {
    [all...]
  /external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/
pointer_type.pass.cpp 21 struct Deleter {
42 typedef std::unique_ptr<VT, Deleter> P;
43 static_assert((std::is_same<typename P::pointer, Deleter::pointer>::value),
  /external/libtextclassifier/util/java/
scoped_local_ref.h 28 // A deleter to be used with std::unique_ptr to delete JNI local references.
41 // As the deleter and its state are thread-local, ensure the envs
64 // the deleter. Do not use the same jobject across different threads.
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/
pointer_type.pass.cpp 21 struct Deleter {
42 typedef std::unique_ptr<VT, Deleter> P;
43 static_assert((std::is_same<typename P::pointer, Deleter::pointer>::value),
  /external/drm_hwcomposer/
autogl.h 36 #define AUTO_GL_TYPE(name, type, zero, deleter) \
37 struct name##Deleter { \
42 deleter; \
46 typedef std::unique_ptr<type, name##Deleter> name;
  /external/icu/icu4c/source/common/
uhash_us.cpp 18 * Deleter for Hashtable objects.
  /hardware/google/av/media/codecs/vpx/
C2SoftVp8Enc.cpp 78 std::function<void(C2Component*)> deleter) override {
82 deleter);
89 std::function<void(C2ComponentInterface*)> deleter) override {
94 deleter);
  /external/swiftshader/third_party/LLVM/lib/CodeGen/
GCMetadata.cpp 42 class Deleter : public FunctionPass {
46 Deleter();
187 char Deleter::ID = 0;
190 return new Deleter();
193 Deleter::Deleter() : FunctionPass(ID) {}
195 const char *Deleter::getPassName() const {
199 void Deleter::getAnalysisUsage(AnalysisUsage &AU) const {
204 bool Deleter::runOnFunction(Function &MF) {
208 bool Deleter::doFinalization(Module &M)
    [all...]
  /external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/
pointer_deleter.pass.cpp 15 // TESTING unique_ptr(pointer, deleter)
18 // 1 unique_ptr(pointer, deleter&&) only requires a MoveConstructible deleter.
19 // 2 unique_ptr(pointer, deleter&) requires a CopyConstructible deleter.
20 // 3 unique_ptr<T, D&>(pointer, deleter) does not require a CopyConstructible deleter.
21 // 4 unique_ptr<T, D const&>(pointer, deleter) does not require a CopyConstructible deleter.
22 // 5 unique_ptr(pointer, deleter) should work for derived pointers
    [all...]
pointer.pass.cpp 18 // 1 The pointer constructor works for any default constructible deleter types.
23 // 1 Construct unique_ptr<T, D>'s with a pointer to 'T' and various deleter
25 // 2 Construct unique_ptr<T, D>'s with a pointer to 'D' and various deleter
27 // 3 Construct a unique_ptr<T, D> with a pointer to 'T' and various deleter
38 // unique_ptr(pointer) ctor should only require default Deleter ctor
47 using U2 = std::unique_ptr<ValueT, Deleter<ValueT> >;
112 // the deleter is a pointer type
117 // the deleter is not default constructible
move.pass.cpp 28 // 2 The only requirement on the deleter is that it is MoveConstructible
34 // 1 Explicitly construct unique_ptr<T, D> for various deleter types 'D'.
35 // check that the value and deleter have been properly moved. (C-1,2,3)
47 std::unique_ptr<VT, Deleter<VT> > source2() {
48 return std::unique_ptr<VT, Deleter<VT> >(newValue<VT>(1), Deleter<VT>(5));
63 void sink2(std::unique_ptr<VT, Deleter<VT> > p) {
99 typedef Deleter<VT> MoveDel;
149 typedef std::unique_ptr<VT, Deleter<VT> > U;
move_convert.single.pass.cpp 28 // test converting move ctor. Should only require a MoveConstructible deleter, or if
29 // deleter is a reference, not even that.
107 { // cannot move if the deleter-types cannot convert
145 typedef std::unique_ptr<A, Deleter<A> > APtr;
146 typedef std::unique_ptr<B, Deleter<B> > BPtr;
185 typedef std::unique_ptr<A, Deleter<A> > APtr;
186 typedef std::unique_ptr<B, Deleter<B> > BPtr;
188 Deleter<B> del(5);
197 Deleter<B> del(5);
null.pass.cpp 33 std::unique_ptr<VT, Deleter<VT> > p(0);
47 std::unique_ptr<VT, Deleter<VT> > p(0, Deleter<VT>(5));
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/
pointer_deleter.pass.cpp 15 // TESTING unique_ptr(pointer, deleter)
18 // 1 unique_ptr(pointer, deleter&&) only requires a MoveConstructible deleter.
19 // 2 unique_ptr(pointer, deleter&) requires a CopyConstructible deleter.
20 // 3 unique_ptr<T, D&>(pointer, deleter) does not require a CopyConstructible deleter.
21 // 4 unique_ptr<T, D const&>(pointer, deleter) does not require a CopyConstructible deleter.
22 // 5 unique_ptr(pointer, deleter) should work for derived pointers
    [all...]
pointer.pass.cpp 18 // 1 The pointer constructor works for any default constructible deleter types.
23 // 1 Construct unique_ptr<T, D>'s with a pointer to 'T' and various deleter
25 // 2 Construct unique_ptr<T, D>'s with a pointer to 'D' and various deleter
27 // 3 Construct a unique_ptr<T, D> with a pointer to 'T' and various deleter
38 // unique_ptr(pointer) ctor should only require default Deleter ctor
47 using U2 = std::unique_ptr<ValueT, Deleter<ValueT> >;
112 // the deleter is a pointer type
117 // the deleter is not default constructible
move.pass.cpp 28 // 2 The only requirement on the deleter is that it is MoveConstructible
34 // 1 Explicitly construct unique_ptr<T, D> for various deleter types 'D'.
35 // check that the value and deleter have been properly moved. (C-1,2,3)
47 std::unique_ptr<VT, Deleter<VT> > source2() {
48 return std::unique_ptr<VT, Deleter<VT> >(newValue<VT>(1), Deleter<VT>(5));
63 void sink2(std::unique_ptr<VT, Deleter<VT> > p) {
99 typedef Deleter<VT> MoveDel;
149 typedef std::unique_ptr<VT, Deleter<VT> > U;
move_convert.single.pass.cpp 28 // test converting move ctor. Should only require a MoveConstructible deleter, or if
29 // deleter is a reference, not even that.
107 { // cannot move if the deleter-types cannot convert
145 typedef std::unique_ptr<A, Deleter<A> > APtr;
146 typedef std::unique_ptr<B, Deleter<B> > BPtr;
185 typedef std::unique_ptr<A, Deleter<A> > APtr;
186 typedef std::unique_ptr<B, Deleter<B> > BPtr;
188 Deleter<B> del(5);
197 Deleter<B> del(5);
  /external/skia/tests/
CPlusPlusEleven.cpp 22 template <typename T> void deleter(T*) { } function in namespace:__anon34249
23 template <typename T> struct Deleter {
  /external/skqp/tests/
CPlusPlusEleven.cpp 22 template <typename T> void deleter(T*) { } function in namespace:__anon34917
23 template <typename T> struct Deleter {
  /packages/services/Car/procfs-inspector/server/
directory.h 57 class Deleter {
64 std::unique_ptr<DIR, Deleter> mDirectory;
  /external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.modifiers/
swap.pass.cpp 57 using U = std::unique_ptr<VT, Deleter<VT> >;
64 std::unique_ptr<VT, Deleter<VT> > s1(p1, Deleter<VT>(1));
66 std::unique_ptr<VT, Deleter<VT> > s2(p2, Deleter<VT>(2));
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.modifiers/
swap.pass.cpp 57 using U = std::unique_ptr<VT, Deleter<VT> >;
64 std::unique_ptr<VT, Deleter<VT> > s1(p1, Deleter<VT>(1));
66 std::unique_ptr<VT, Deleter<VT> > s2(p2, Deleter<VT>(2));
  /external/swiftshader/third_party/LLVM/lib/Support/
ManagedStatic.cpp 23 void (*Deleter)(void*)) const {
32 DeleterFn = Deleter;
44 DeleterFn = Deleter;

Completed in 739 milliseconds

12 3 4 5 6 7 8 91011>>