diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 19:04:52 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 19:04:52 +0900 |
| commit | 38d457435534fd06d6278feaf3d9efd471a19746 (patch) | |
| tree | ec60408e5814a6b34caadb985f21cea4e9fa51ec /src/a2algo.h | |
| parent | 05d85e296563842ab57eb201fb6d11a68cf8fa41 (diff) | |
Remove forEachMemFunSH in favor of for loop with auto
Diffstat (limited to 'src/a2algo.h')
| -rw-r--r-- | src/a2algo.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/a2algo.h b/src/a2algo.h index 2ce575ac..0fc3d635 100644 --- a/src/a2algo.h +++ b/src/a2algo.h @@ -86,16 +86,6 @@ std::pair<InputIterator, size_t> max_sequence(InputIterator first, return std::pair<InputIterator, size_t>(maxfirst, maxlen); } -template<typename InputIterator, typename R, typename C, typename A, - typename ACompat> -static void forEachMemFunSH(InputIterator first, InputIterator last, - R (C::*f)(A), ACompat arg) -{ - for(; first != last; ++first) { - ((*first).get()->*f)(arg); - } -} - template<typename InputIterator, typename T> InputIterator findSecond (InputIterator first, InputIterator last, const T& t) |
