Searched refs:unique_free_ptr (Results 1 - 7 of 7) sorted by relevance

/fuchsia/zircon/system/ulib/fbl/include/fbl/
H A Dunique_free_ptr.h16 class unique_free_ptr { class in namespace:fbl
18 static_assert(has_trivial_destructor<T>::value, "unique_free_ptr can only be used on types with trivial destructors");
20 constexpr unique_free_ptr() : ptr_(nullptr) {} function in class:fbl::unique_free_ptr
21 constexpr unique_free_ptr(decltype(nullptr)) : unique_free_ptr() {}
23 explicit unique_free_ptr(T* t) : ptr_(t) { } function in class:fbl::unique_free_ptr
25 ~unique_free_ptr() {
29 unique_free_ptr(unique_free_ptr&& o) : ptr_(o.release()) {} function in class:fbl::unique_free_ptr
30 unique_free_ptr
[all...]
/fuchsia/zircon/system/utest/fbl/
H A Dunique_free_ptr_tests.cpp9 #include <fbl/unique_free_ptr.h>
12 static_assert(fbl::is_standard_layout<fbl::unique_free_ptr<int>>::value,
13 "fbl::unique_free_ptr<int>'s should have a standard layout");
15 // These tests mostly serve to exercise the unique_free_ptr type and work well with heap checkers as
22 fbl::unique_free_ptr<int> ptr(static_cast<int*>(malloc(sizeof(int))));
24 fbl::unique_free_ptr<int> ptr2 = fbl::move(ptr);
37 fbl::unique_free_ptr<int> ptr(nullptr);
51 fbl::unique_free_ptr<int> ptr1(static_cast<int*>(malloc(sizeof(int))));
54 fbl::unique_free_ptr<int> ptr2(static_cast<int*>(malloc(sizeof(int))));
70 fbl::unique_free_ptr<in
143 END_TEST_CASE(unique_free_ptr); variable
[all...]
/fuchsia/zircon/system/dev/misc/tpm/
H A Dtpm.cpp24 #include <fbl/unique_free_ptr.h>
53 fbl::unique_free_ptr<tpm_getrandom_resp> resp(
/fuchsia/zircon/system/ulib/blobfs/include/blobfs/
H A Dhost.h21 #include <fbl/unique_free_ptr.h>
/fuchsia/zircon/system/uapp/minfs/
H A Dmain.cpp17 #include <fbl/unique_free_ptr.h>
/fuchsia/zircon/kernel/syscalls/
H A Dddk_pci.cpp28 #include <fbl/unique_free_ptr.h>
140 fbl::unique_free_ptr<zx_pci_init_arg_t> arg;
/fuchsia/zircon/system/host/minfs/
H A Dmain.cpp12 #include <fbl/unique_free_ptr.h>

Completed in 75 milliseconds