Lines Matching refs:scoped_ptr
309 class scoped_ptr {
322 scoped_ptr() : impl_(nullptr) {}
325 explicit scoped_ptr(element_type* p) : impl_(p) {}
328 scoped_ptr(element_type* p, const D& d) : impl_(p, d) {}
331 scoped_ptr(std::nullptr_t) : impl_(nullptr) {}
344 scoped_ptr(scoped_ptr<U, V>&& other)
360 scoped_ptr& operator=(scoped_ptr<U, V>&& rhs) {
368 scoped_ptr& operator=(std::nullptr_t) {
374 scoped_ptr(const scoped_ptr& other) = delete;
375 scoped_ptr& operator=(const scoped_ptr& other) = delete;
379 RTC_DEPRECATED scoped_ptr&& Pass() {
412 scoped_ptr::*Testable;
416 return impl_.get() ? &scoped_ptr::impl_ : nullptr;
426 void swap(scoped_ptr& p2) {
451 template <typename U, typename V> friend class scoped_ptr;
455 explicit scoped_ptr(int disallow_construction_from_null);
461 template <class U> bool operator==(scoped_ptr<U> const& p2) const;
462 template <class U> bool operator!=(scoped_ptr<U> const& p2) const;
466 class scoped_ptr<T[], D> {
473 scoped_ptr() : impl_(nullptr) {}
488 explicit scoped_ptr(element_type* array) : impl_(array) {}
491 scoped_ptr(std::nullptr_t) : impl_(nullptr) {}
494 scoped_ptr(scoped_ptr&& other) : impl_(&other.impl_) {}
497 scoped_ptr& operator=(scoped_ptr&& rhs) {
504 scoped_ptr& operator=(std::nullptr_t) {
510 scoped_ptr(const scoped_ptr& other) = delete;
511 scoped_ptr& operator=(const scoped_ptr& other) = delete;
515 RTC_DEPRECATED scoped_ptr&& Pass() {
538 scoped_ptr::*Testable;
542 return impl_.get() ? &scoped_ptr::impl_ : nullptr;
552 void swap(scoped_ptr& p2) {
587 template <typename U> explicit scoped_ptr(U* array);
588 explicit scoped_ptr(int disallow_construction_from_null);
599 template <class U> bool operator==(scoped_ptr<U> const& p2) const;
600 template <class U> bool operator!=(scoped_ptr<U> const& p2) const;
604 void swap(rtc::scoped_ptr<T, D>& p1, rtc::scoped_ptr<T, D>& p2) {
611 bool operator==(T* p1, const rtc::scoped_ptr<T, D>& p2) {
616 bool operator!=(T* p1, const rtc::scoped_ptr<T, D>& p2) {
624 rtc::scoped_ptr<T> rtc_make_scoped_ptr(T* ptr) {
625 return rtc::scoped_ptr<T>(ptr);