Browse Source

graph: noexcept-ness review

Michele Caini 1 year ago
parent
commit
83641a997d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/entt/graph/adjacency_matrix.hpp
  2. 1 1
      src/entt/graph/flow.hpp

+ 1 - 1
src/entt/graph/adjacency_matrix.hpp

@@ -193,7 +193,7 @@ public:
      * @brief Exchanges the contents with those of a given adjacency matrix.
      * @brief Exchanges the contents with those of a given adjacency matrix.
      * @param other Adjacency matrix to exchange the content with.
      * @param other Adjacency matrix to exchange the content with.
      */
      */
-    void swap(adjacency_matrix &other) {
+    void swap(adjacency_matrix &other) noexcept {
         using std::swap;
         using std::swap;
         swap(matrix, other.matrix);
         swap(matrix, other.matrix);
         swap(vert, other.vert);
         swap(vert, other.vert);

+ 1 - 1
src/entt/graph/flow.hpp

@@ -209,7 +209,7 @@ public:
      * @brief Exchanges the contents with those of a given flow builder.
      * @brief Exchanges the contents with those of a given flow builder.
      * @param other Flow builder to exchange the content with.
      * @param other Flow builder to exchange the content with.
      */
      */
-    void swap(basic_flow &other) {
+    void swap(basic_flow &other) noexcept {
         using std::swap;
         using std::swap;
         std::swap(index, other.index);
         std::swap(index, other.index);
         std::swap(vertices, other.vertices);
         std::swap(vertices, other.vertices);