diff options
| author | bunnei <bunneidev@gmail.com> | 2019-10-15 16:41:52 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-15 16:41:52 -0400 |
| commit | ba0086e32dcbf11232fa2ae0864c28a991a56432 (patch) | |
| tree | 1966d00f489790ec77e3d55e0b40d9e047272411 /src/common | |
| parent | cab2619aeb111bd6c5dbcc5adc0d2e8154a1e8fc (diff) | |
| parent | d5706346d7e95984a003bfeedf1b8ffed6dd9422 (diff) | |
Merge pull request #2977 from lioncash/algorithm
common: Rename binary_find.h to algorithm.h
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/common/algorithm.h (renamed from src/common/binary_find.h) | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 906c486fd..5b51fcafa 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -95,11 +95,11 @@ add_custom_command(OUTPUT scm_rev.cpp ) add_library(common STATIC + algorithm.h alignment.h assert.h detached_tasks.cpp detached_tasks.h - binary_find.h bit_field.h bit_util.h cityhash.cpp diff --git a/src/common/binary_find.h b/src/common/algorithm.h index 5cc523bf9..e21b1373c 100644 --- a/src/common/binary_find.h +++ b/src/common/algorithm.h @@ -5,6 +5,12 @@ #pragma once #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 { |
