-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcount.h
More file actions
29 lines (20 loc) · 663 Bytes
/
count.h
File metadata and controls
29 lines (20 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef PY_FUNC_COUNT_H
#define PY_FUNC_COUNT_H
#include <vector>
#include <string>
#include <array>
namespace pyfunc {
template <typename T2>
T2 count(std::string source, std::string search);
template <typename T2>
T2 count(std::string source, char search_);
template <typename T, typename T2>
T2 count(std::vector<T> source, T search);
template <typename T, typename T2>
T2 count(T* source, size_t size, T search);
template <typename T, typename T2>
T2 count(const T* source, size_t size, T search);
template <typename T, size_t size, typename T2>
T2 count(std::array<T, size> source, T search);
}
#endif