Lines Matching refs:scoped_ptr
240 class scoped_ptr {
241 DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND(scoped_ptr)
254 scoped_ptr() : impl_(nullptr) {} in scoped_ptr() function
257 explicit scoped_ptr(element_type* p) : impl_(p) {} in scoped_ptr() function
260 scoped_ptr(element_type* p, const D& d) : impl_(p, d) {} in scoped_ptr() function
263 scoped_ptr(std::nullptr_t) : impl_(nullptr) {} in scoped_ptr() function
273 scoped_ptr(scoped_ptr&& other) : impl_(&other.impl_) {} in scoped_ptr() function
300 scoped_ptr(scoped_ptr<U, E>&& other) in scoped_ptr() function
312 scoped_ptr& operator=(scoped_ptr&& rhs) {
336 scoped_ptr& operator=(scoped_ptr<U, E>&& rhs) {
343 scoped_ptr& operator=(std::nullptr_t) {
377 scoped_ptr::*Testable;
381 return impl_.get() ? &scoped_ptr::impl_ : nullptr; in Testable()
385 void swap(scoped_ptr& p2) { in swap()
399 template <typename U, typename V> friend class scoped_ptr;
403 explicit scoped_ptr(int disallow_construction_from_null);
407 class scoped_ptr<T[], D> {
408 DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND(scoped_ptr)
416 scoped_ptr() : impl_(nullptr) {} in scoped_ptr() function
429 explicit scoped_ptr(element_type* array) : impl_(array) {} in scoped_ptr() function
432 scoped_ptr(std::nullptr_t) : impl_(nullptr) {} in scoped_ptr() function
435 scoped_ptr(scoped_ptr&& other) : impl_(&other.impl_) {} in scoped_ptr() function
438 scoped_ptr& operator=(scoped_ptr&& rhs) {
445 scoped_ptr& operator=(std::nullptr_t) {
469 scoped_ptr::*Testable;
473 return impl_.get() ? &scoped_ptr::impl_ : nullptr; in Testable()
477 void swap(scoped_ptr& p2) { in swap()
501 template <typename U> explicit scoped_ptr(U* array);
502 explicit scoped_ptr(int disallow_construction_from_null);
512 void swap(scoped_ptr<T, D>& p1, scoped_ptr<T, D>& p2) { in swap()
517 bool operator==(const scoped_ptr<T1, D1>& p1, const scoped_ptr<T2, D2>& p2) {
521 bool operator==(const scoped_ptr<T, D>& p, std::nullptr_t) {
525 bool operator==(std::nullptr_t, const scoped_ptr<T, D>& p) {
530 bool operator!=(const scoped_ptr<T1, D1>& p1, const scoped_ptr<T2, D2>& p2) {
534 bool operator!=(const scoped_ptr<T, D>& p, std::nullptr_t) {
538 bool operator!=(std::nullptr_t, const scoped_ptr<T, D>& p) {
543 bool operator<(const scoped_ptr<T1, D1>& p1, const scoped_ptr<T2, D2>& p2) {
547 bool operator<(const scoped_ptr<T, D>& p, std::nullptr_t) {
552 bool operator<(std::nullptr_t, const scoped_ptr<T, D>& p) {
558 bool operator>(const scoped_ptr<T1, D1>& p1, const scoped_ptr<T2, D2>& p2) {
562 bool operator>(const scoped_ptr<T, D>& p, std::nullptr_t) {
566 bool operator>(std::nullptr_t, const scoped_ptr<T, D>& p) {
571 bool operator<=(const scoped_ptr<T1, D1>& p1, const scoped_ptr<T2, D2>& p2) {
575 bool operator<=(const scoped_ptr<T, D>& p, std::nullptr_t) {
579 bool operator<=(std::nullptr_t, const scoped_ptr<T, D>& p) {
584 bool operator>=(const scoped_ptr<T1, D1>& p1, const scoped_ptr<T2, D2>& p2) {
588 bool operator>=(const scoped_ptr<T, D>& p, std::nullptr_t) {
592 bool operator>=(std::nullptr_t, const scoped_ptr<T, D>& p) {
600 scoped_ptr<T> make_scoped_ptr(T* ptr) { in make_scoped_ptr()
601 return scoped_ptr<T>(ptr); in make_scoped_ptr()
605 std::ostream& operator<<(std::ostream& out, const scoped_ptr<T>& p) {