Home
last modified time | relevance | path

Searched defs:unique_ptr (Results 1 – 11 of 11) sorted by relevance

/external/harfbuzz_ng/src/
Dhb-cplusplus.hh93 struct unique_ptr struct
95 using element_type = T;
97 using v = vtable<T>;
99 explicit unique_ptr (T *p = nullptr) : p (p) {} in unique_ptr() function
101 unique_ptr (unique_ptr &&o) : p (o.p) { o.p = nullptr; } in unique_ptr() argument
103 unique_ptr& operator = (unique_ptr &&o) { v::destroy (p); p = o.p; o.p = nullptr; return *this; } in operator =()
104 ~unique_ptr () { v::destroy (p); p = nullptr; } in ~unique_ptr()
106 T* get() const { return p; } in get()
107 T* release () { T* v = p; p = nullptr; return v; } in release()
109 void swap (unique_ptr &o) { std::swap (p, o.p); } in swap()
[all …]
/external/clang/test/CodeGenCXX/
Ddebug-info-template-array.cpp4 struct unique_ptr { struct
5 unique_ptr() {} in unique_ptr() argument
Dpr18635.cpp9 template <typename T> class unique_ptr { class
16 constexpr unique_ptr() noexcept : data() {} in unique_ptr() function in unique_ptr
17 explicit unique_ptr(T *p) noexcept : data() {} in unique_ptr() function in unique_ptr
Ddebug-info-template-partial-specialization.cpp24 template <class _Tp, class _Dp = default_delete<_Tp> > class unique_ptr class
27 unique_ptr(pointer __p, _Dp __d) {} in unique_ptr() function in unique_ptr
/external/clang/test/SemaCXX/
Drval-references-examples.cpp4 class unique_ptr { class
10 unique_ptr() : ptr(0) { } in unique_ptr() function in unique_ptr
11 unique_ptr(unique_ptr &&other) : ptr(other.ptr) { other.ptr = 0; } in unique_ptr() function in unique_ptr
12 explicit unique_ptr(T *ptr) : ptr(ptr) { } in unique_ptr() function in unique_ptr
/external/rust/cxx/tests/
Dtest.rs118 let unique_ptr = ffi::c_return_unique_ptr(); in test_c_take() localVariable
251 let mut unique_ptr = ffi::c_return_unique_ptr(); in test_c_method_calls() localVariable
291 let unique_ptr = ffi2::ns_c_return_unique_ptr_ns(); in test_c_ns_method_calls() localVariable
325 let unique_ptr = ffi::c_return_unique_ptr(); in test_rust_name_attribute() localVariable
Dunique_ptr.rs8 let unique_ptr = UniquePtr::<CxxString>::null(); in test_deref_null() localVariable
/external/flatbuffers/include/flatbuffers/
Dstl_emulation.h108 template <class T> using unique_ptr = std::unique_ptr<T>; variable
117 unique_ptr() {} in unique_ptr() function
118 explicit unique_ptr(T* p) : std::unique_ptr<T>(p) {} in unique_ptr() function
119 unique_ptr(std::unique_ptr<T>&& u) { *this = std::move(u); } in unique_ptr() function
120 unique_ptr(unique_ptr&& u) { *this = std::move(u); } in unique_ptr() function
/external/rust/cxx/src/
Dlib.rs461 mod unique_ptr; module
/external/swiftshader/third_party/marl/include/marl/
Dmemory.h110 using unique_ptr = std::unique_ptr<T, Deleter>; variable
/external/wuffs-mirror-release-c/release/c/
Dwuffs-v0.3.c5845 using unique_ptr = std::unique_ptr<wuffs_base__hasher_u32, decltype(&free)>; member
5996 using unique_ptr = std::unique_ptr<wuffs_base__image_decoder, decltype(&free)>; member
6137 using unique_ptr = std::unique_ptr<wuffs_base__io_transformer, decltype(&free)>; member
6215 using unique_ptr = std::unique_ptr<wuffs_base__token_decoder, decltype(&free)>; member
6355 using unique_ptr = std::unique_ptr<wuffs_adler32__hasher, decltype(&free)>; member
6639 using unique_ptr = std::unique_ptr<wuffs_bmp__decoder, decltype(&free)>; member
6923 using unique_ptr = std::unique_ptr<wuffs_cbor__decoder, decltype(&free)>; member
7111 using unique_ptr = std::unique_ptr<wuffs_crc32__ieee_hasher, decltype(&free)>; member
7372 using unique_ptr = std::unique_ptr<wuffs_deflate__decoder, decltype(&free)>; member
7602 using unique_ptr = std::unique_ptr<wuffs_lzw__decoder, decltype(&free)>; member
[all …]