/*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2013-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.
const T* operator->() const { return &value; }
T* operator->() { return &value; }
+ /// move the value out (sugar for std::move(*moveWrapper))
+ T&& move() { return std::move(value); }
+
// If you want these you're probably doing it wrong, though they'd be
// easy enough to implement
MoveWrapper& operator=(MoveWrapper const&) = delete;
return MoveWrapper<T0>(std::forward<T0>(t));
}
-} // namespace
+} // namespace folly