[WiP] Weird story still continues. Part 6. Test PV

This commit is contained in:
korenkonder
2023-06-03 02:43:41 +03:00
parent a348230f5c
commit ce420e52ac
77 changed files with 17145 additions and 3806 deletions
+10
View File
@@ -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());