From 5774787893650505588f3ef92087179cae37fadc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Mon, 20 Oct 2014 11:15:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=87=8D=E5=A4=8D=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E7=9A=84=E7=AE=97=E6=B3=95find?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TinySTL/Algorithm.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/TinySTL/Algorithm.h b/TinySTL/Algorithm.h index 628758e..b98cd8a 100644 --- a/TinySTL/Algorithm.h +++ b/TinySTL/Algorithm.h @@ -41,16 +41,6 @@ namespace TinySTL{ memset(first, static_cast(value), n * sizeof(wchar_t)); return first + n; } - //************ [find] **************** - //********* [Algorithm Complexity: O(N)] **************** - template - InputIterator find(InputIterator first, InputIterator last, const T& val){ - for (; first != last; ++first){ - if (*first == val) - break; - } - return first; - } //*********** [min] ******************** //********* [Algorithm Complexity: O(1)] **************** template -- GitLab