Lines Matching defs:exception_ptr

1 // Exception Handling support header (exception_ptr class) for -*- C++ -*-
26 /** @file bits/exception_ptr.h
65 class exception_ptr;
68 using __exception_ptr::exception_ptr;
70 /** Obtain an exception_ptr to the currently handled exception. If there
74 exception_ptr current_exception() _GLIBCXX_USE_NOEXCEPT;
77 exception_ptr make_exception_ptr(_Ex) _GLIBCXX_USE_NOEXCEPT;
79 /// Throw the object pointed to by the exception_ptr.
80 void rethrow_exception(exception_ptr) __attribute__ ((__noreturn__));
90 class exception_ptr
94 explicit exception_ptr(void* __e) _GLIBCXX_USE_NOEXCEPT;
101 friend exception_ptr std::current_exception() _GLIBCXX_USE_NOEXCEPT;
102 friend void std::rethrow_exception(exception_ptr);
104 friend exception_ptr std::make_exception_ptr(_Ex) _GLIBCXX_USE_NOEXCEPT;
107 exception_ptr() _GLIBCXX_USE_NOEXCEPT;
109 exception_ptr(const exception_ptr&) _GLIBCXX_USE_NOEXCEPT;
112 exception_ptr(nullptr_t) noexcept
116 exception_ptr(exception_ptr&& __o) noexcept
122 typedef void (exception_ptr::*__safe_bool)();
125 exception_ptr(__safe_bool) _GLIBCXX_USE_NOEXCEPT;
128 exception_ptr&
129 operator=(const exception_ptr&) _GLIBCXX_USE_NOEXCEPT;
132 exception_ptr&
133 operator=(exception_ptr&& __o) noexcept
135 exception_ptr(static_cast<exception_ptr&&>(__o)).swap(*this);
140 ~exception_ptr() _GLIBCXX_USE_NOEXCEPT;
143 swap(exception_ptr&) _GLIBCXX_USE_NOEXCEPT;
162 operator==(const exception_ptr&, const exception_ptr&) noexcept = default;
165 operator==(const exception_ptr& __x, const exception_ptr& __y)
170 operator!=(const exception_ptr& __x, const exception_ptr& __y)
182 exception_ptr::exception_ptr() _GLIBCXX_USE_NOEXCEPT
188 exception_ptr::exception_ptr(const exception_ptr& __other)
198 exception_ptr::~exception_ptr() _GLIBCXX_USE_NOEXCEPT
205 inline exception_ptr&
206 exception_ptr::operator=(const exception_ptr& __other) _GLIBCXX_USE_NOEXCEPT
208 exception_ptr(__other).swap(*this);
214 exception_ptr::swap(exception_ptr &__other) _GLIBCXX_USE_NOEXCEPT
221 /// @relates exception_ptr
223 swap(exception_ptr& __lhs, exception_ptr& __rhs)
236 /// Obtain an exception_ptr pointing to a copy of the supplied object.
239 exception_ptr
251 return exception_ptr(__e);
274 inline exception_ptr
276 { return exception_ptr(); }