diff options
| author | 2019-10-15 14:56:15 -0400 | |
|---|---|---|
| committer | 2019-10-15 15:25:23 -0400 | |
| commit | d5706346d7e95984a003bfeedf1b8ffed6dd9422 (patch) | |
| tree | 1966d00f489790ec77e3d55e0b40d9e047272411 | |
| parent | common: Rename binary_find.h to algorithm.h (diff) | |
| download | yuzu-d5706346d7e95984a003bfeedf1b8ffed6dd9422.tar.gz yuzu-d5706346d7e95984a003bfeedf1b8ffed6dd9422.tar.xz yuzu-d5706346d7e95984a003bfeedf1b8ffed6dd9422.zip | |
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.
| -rw-r--r-- | src/common/algorithm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/algorithm.h b/src/common/algorithm.h index 18e7ece98..e21b1373c 100644 --- a/src/common/algorithm.h +++ b/src/common/algorithm.h | |||
| @@ -7,6 +7,11 @@ | |||
| 7 | #include <algorithm> | 7 | #include <algorithm> |
| 8 | #include <functional> | 8 | #include <functional> |
| 9 | 9 | ||
| 10 | // Algorithms that operate on iterators, much like the <algorithm> header. | ||
| 11 | // | ||
| 12 | // Note: If the algorithm is not general-purpose and/or doesn't operate on iterators, | ||
| 13 | // it should probably not be placed within this header. | ||
| 14 | |||
| 10 | namespace Common { | 15 | namespace Common { |
| 11 | 16 | ||
| 12 | template <class ForwardIt, class T, class Compare = std::less<>> | 17 | template <class ForwardIt, class T, class Compare = std::less<>> |