/*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2014-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
return value_;
}
+template <class T>
+const T&& Try<T>::value() const && {
+ throwIfFailed();
+ return std::move(value_);
+}
+
template <class T>
void Try<T>::throwIfFailed() const {
switch (contains_) {