|
|
@@ -180,6 +180,18 @@ public:
|
|
|
*/
|
|
|
basic_flow &operator=(basic_flow &&) noexcept = default;
|
|
|
|
|
|
+ /**
|
|
|
+ * @brief Exchanges the contents with those of a given flow builder.
|
|
|
+ * @param other Flow builder to exchange the content with.
|
|
|
+ */
|
|
|
+ void swap(basic_flow &other) noexcept {
|
|
|
+ using std::swap;
|
|
|
+ std::swap(index, other.index);
|
|
|
+ std::swap(vertices, other.vertices);
|
|
|
+ std::swap(deps, other.deps);
|
|
|
+ std::swap(sync_on, other.sync_on);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @brief Returns the associated allocator.
|
|
|
* @return The associated allocator.
|
|
|
@@ -205,18 +217,6 @@ public:
|
|
|
sync_on = {};
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @brief Exchanges the contents with those of a given flow builder.
|
|
|
- * @param other Flow builder to exchange the content with.
|
|
|
- */
|
|
|
- void swap(basic_flow &other) noexcept {
|
|
|
- using std::swap;
|
|
|
- std::swap(index, other.index);
|
|
|
- std::swap(vertices, other.vertices);
|
|
|
- std::swap(deps, other.deps);
|
|
|
- std::swap(sync_on, other.sync_on);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @brief Returns true if a flow builder contains no tasks, false otherwise.
|
|
|
* @return True if the flow builder contains no tasks, false otherwise.
|