Lines Matching defs:shared_ptr
12 /// Binding to C++ `std::shared_ptr<T>`.
30 let mut shared_ptr = MaybeUninit::<SharedPtr<T>>::uninit();
31 let new = shared_ptr.as_mut_ptr().cast();
34 shared_ptr.assume_init()
43 let mut shared_ptr = MaybeUninit::<SharedPtr<T>>::uninit();
44 let new = shared_ptr.as_mut_ptr().cast();
47 shared_ptr.assume_init()
53 /// This is the opposite of [std::shared_ptr\<T\>::operator bool](https://en.cppreference.com/w/cpp/memory/shared_ptr/operator_bool).
71 /// Matches the behavior of [std::weak_ptr\<T\>::weak_ptr(const std::shared_ptr\<T\> \&)](https://en.cppreference.com/w/cpp/memory/weak_ptr/weak_ptr).
94 let mut shared_ptr = MaybeUninit::<SharedPtr<T>>::uninit();
95 let new = shared_ptr.as_mut_ptr().cast();
99 shared_ptr.assume_init()
178 /// println!("the shared_ptr points to: {}", *ptr);
217 #[link_name = concat!("cxxbridge1$std$shared_ptr$", $segment, "$null")]
226 #[link_name = concat!("cxxbridge1$std$shared_ptr$", $segment, "$uninit")]
235 #[link_name = concat!("cxxbridge1$std$shared_ptr$", $segment, "$clone")]
244 #[link_name = concat!("cxxbridge1$std$shared_ptr$", $segment, "$get")]
253 #[link_name = concat!("cxxbridge1$std$shared_ptr$", $segment, "$drop")]