mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
however
This commit is contained in:
parent
91aacafecb
commit
f27a418dbe
81 changed files with 310 additions and 302 deletions
18
src/util/listutil.hpp
Normal file
18
src/util/listutil.hpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef UTIL_LISTUTIL_H_
|
||||
#define UTIL_LISTUTIL_H_
|
||||
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <queue>
|
||||
|
||||
namespace util {
|
||||
template<class T>
|
||||
bool contains(const std::vector<T>& vec, const T& value) {
|
||||
return std::find(vec.begin(), vec.end(), value) != vec.end();
|
||||
}
|
||||
|
||||
std::string to_string(const std::vector<std::string>& vec);
|
||||
}
|
||||
|
||||
#endif // UTIL_LISTUTIL_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue