Blame view

src/ExternLib/vector_/vector_.hh 432 Bytes
5d85642a   Benjamin Renard   Add vector functi...
1
2
3
4
5
6
7
8
9
10
11
12
/**
 * vector_.hh
 *
 *  Created on: 08 sep. 2020
 *      Author: AKKA IS
 */

#ifndef VECTOR_HH_
#define VECTOR_HH_

#include <vector>

27f9634f   Benjamin Renard   Use templates for...
13
14
15
16
17
18
19
20
template <typename Type1, typename Type2, typename Type3>
std::vector<Type1> vector_(const Type1& comp1, const Type2& comp2, const Type3& comp3) {
	std::vector<Type1> vec;
	vec.push_back(comp1);
	vec.push_back((Type1)comp2);
	vec.push_back((Type1)comp3);
	return vec;
}
5d85642a   Benjamin Renard   Add vector functi...
21
22

#endif /* VECTOR_HH_ */