We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df4bd1b commit a4d8744Copy full SHA for a4d8744
CPP_Module_08/ex00/easyfind.hpp
@@ -0,0 +1,21 @@
1
+/* ************************************************************************** */
2
+/* */
3
+/* ::: :::::::: */
4
+/* easyfind.hpp :+: :+: :+: */
5
+/* +:+ +:+ +:+ */
6
+/* By: shovsepy <marvin@42.fr> +#+ +:+ +#+ */
7
+/* +#+#+#+#+#+ +#+ */
8
+/* Created: 2022/02/05 15:45:14 by shovsepy #+# #+# */
9
+/* Updated: 2022/02/05 15:50:27 by shovsepy ### ########.fr */
10
11
12
+
13
+#pragma once
14
15
+#include <algorithm>
16
17
+template <typename T>
18
+typename T::iterator easyfind(T& container, int val)
19
+{
20
+ return (std::find(container.begin(), container.end(), val));
21
+}
0 commit comments