-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjoin.h
More file actions
38 lines (26 loc) · 1009 Bytes
/
join.h
File metadata and controls
38 lines (26 loc) · 1009 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
30
31
32
33
34
35
36
37
38
#ifndef PY_FUNC_JOIN_H
#define PY_FUNC_JOIN_H
#include <vector>
#include <string>
#include <array>
namespace pyfunc {
std::string join(std::string source, std::string join_by);
std::string join(std::string source, char join_by);
template<typename T>
std::string join(std::vector<T> source, std::string join_by);
template<typename T>
std::string join(std::vector<T> source, char join_by);
template<typename T, size_t size>
std::string join(std::array<T, size> source, std::string join_by);
template<typename T, size_t size>
std::string join(std::array<T, size> source, char join_by);
template<typename T>
std::string join(T* source, size_t size, std::string join_by);
template<typename T>
std::string join(T* source, size_t size, char join_by);
template<typename T>
std::string join(const T* source, size_t size, std::string join_by);
template<typename T>
std::string join(const T* source, size_t size, char join_by);
}
#endif