_GLIBCXX_HAVE_BUILTIN_LAUNDER \
"_GLIBCXX_DOXYGEN_ONLY(X)=X " \
__allocator_base=std::__new_allocator \
+ __exception_ptr=__unspecified__ \
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
# tag can be used to specify a list of macro names that should be expanded. The
using __exception_ptr::exception_ptr;
- /** Obtain an exception_ptr to the currently handled exception. If there
- * is none, or the currently handled exception is foreign, return the null
- * value.
+ /** Obtain an exception_ptr to the currently handled exception.
+ *
+ * If there is none, or the currently handled exception is foreign,
+ * return the null value.
+ *
+ * @since C++11
*/
exception_ptr current_exception() _GLIBCXX_USE_NOEXCEPT;
namespace __exception_ptr
{
- using std::rethrow_exception;
+ using std::rethrow_exception; // So that ADL finds it.
/**
* @brief An opaque pointer to an arbitrary exception.
+ *
+ * The actual name of this type is unspecified, so the alias
+ * `std::exception_ptr` should be used to refer to it.
+ *
+ * @headerfile exception
+ * @since C++11 (but usable in C++98 as a GCC extension)
* @ingroup exceptions
*/
class exception_ptr
} // namespace __exception_ptr
+ using __exception_ptr::swap; // So that std::swap(exp1, exp2) finds it.
+
/// Obtain an exception_ptr pointing to a copy of the supplied object.
#if (__cplusplus >= 201103L && __cpp_rtti) || __cpp_exceptions
template<typename _Ex>