Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove some useless #includes
[simgrid.git] / include / xbt / future.hpp
index aa559db..578e7b2 100644 (file)
@@ -9,20 +9,21 @@
 
 #include <cstddef>
 
-#include <utility>
 #include <exception>
+#include <functional>
 #include <stdexcept>
-
 #include <type_traits>
-
-
+#include <utility>
 
 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 {