mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-12 09:08:11 +03:00
[WiP] Weird story still continues. Part 6. Test PV
This commit is contained in:
@@ -12,6 +12,16 @@
|
||||
#include <vector>
|
||||
|
||||
namespace prj {
|
||||
template <class T>
|
||||
bool find(std::vector<T>& vec, T& value) {
|
||||
auto begin = vec.begin();
|
||||
auto end = vec.end();
|
||||
for (auto i = begin; i != end; i++)
|
||||
if (*i == value)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
template <class T>
|
||||
void sort(std::vector<T>& vec) {
|
||||
std::sort(vec.begin(), vec.end());
|
||||
|
||||
Reference in New Issue
Block a user