Flesh out Optional members swap, reset, emplace, has_value
[folly.git] / folly / ExceptionWrapper.h
index 489d158a9c3b214de9020066e04b98f3a06b6a9f..eb493fc68c10429428515a8f6459429e24d01162 100644 (file)
@@ -368,6 +368,9 @@ class exception_wrapper final {
   static bool with_exception_(This& this_, Fn fn_);
 
  public:
+  static exception_wrapper from_exception_ptr(
+      std::exception_ptr const& eptr) noexcept;
+
   //! Default-constructs an empty `exception_wrapper`
   //! \post `type() == none()`
   exception_wrapper() noexcept {}