فهرست منبع

stl: std::find_if

skypjack 3 هفته پیش
والد
کامیت
780da3c78b
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 2 2
      src/entt/graph/flow.hpp
  2. 1 0
      src/entt/stl/algorithm.hpp

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

@@ -55,7 +55,7 @@ class basic_flow {
                     if(auto curr = it++; it != last) {
                         if(it->second) {
                             matrix.insert(curr->first, it->first);
-                        } else if(const auto next = std::find_if(it, last, [](const auto &value) { return value.second; }); next != last) {
+                        } else if(const auto next = stl::find_if(it, last, [](const auto &value) { return value.second; }); next != last) {
                             for(; it != next; ++it) {
                                 matrix.insert(curr->first, it->first);
                                 matrix.insert(it->first, next->first);
@@ -68,7 +68,7 @@ class basic_flow {
                     }
                 } else {
                     // ro item (first iteration only)
-                    if(const auto next = std::find_if(it, last, [](const auto &value) { return value.second; }); next != last) {
+                    if(const auto next = stl::find_if(it, last, [](const auto &value) { return value.second; }); next != last) {
                         for(; it != next; ++it) {
                             matrix.insert(it->first, next->first);
                         }

+ 1 - 0
src/entt/stl/algorithm.hpp

@@ -8,6 +8,7 @@ namespace entt::stl {
 
 using std::all_of;
 using std::any_of;
+using std::find_if;
 using std::none_of;
 using std::sort;