A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove some useless #includes
[simgrid.git]
/
include
/
xbt
/
future.hpp
diff --git
a/include/xbt/future.hpp
b/include/xbt/future.hpp
index
aa559db
..
578e7b2
100644
(file)
--- a/
include/xbt/future.hpp
+++ b/
include/xbt/future.hpp
@@
-9,20
+9,21
@@
#include <cstddef>
#include <cstddef>
-#include <utility>
#include <exception>
#include <exception>
+#include <functional>
#include <stdexcept>
#include <stdexcept>
-
#include <type_traits>
#include <type_traits>
-
-
+#include <utility>
namespace simgrid {
namespace xbt {
namespace simgrid {
namespace xbt {
-/** A value or an exception
+/** A value or an exception (or nothing)
+ *
+ * This is similar to optional<expected<T>> but it with a Future/Promise
+ * like API.
*
*
- *
The API is similar to the one of future and promise
.
+ *
Also the name it not so great
.
**/
template<class T>
class Result {
**/
template<class T>
class Result {