Explorar o código

common/algorithm: Add description comment indicating intended algorithms

Makes it explicit that the header is intended for iterator-based
algorithms that can ideally operate on any type.
Lioncash %!s(int64=6) %!d(string=hai) anos
pai
achega
d5706346d7
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/common/algorithm.h

+ 5 - 0
src/common/algorithm.h

@@ -7,6 +7,11 @@
 #include <algorithm>
 #include <functional>
 
+// Algorithms that operate on iterators, much like the <algorithm> header.
+//
+// Note: If the algorithm is not general-purpose and/or doesn't operate on iterators,
+//       it should probably not be placed within this header.
+
 namespace Common {
 
 template <class ForwardIt, class T, class Compare = std::less<>>