VoxelEngine/src/util/listutil.hpp
Vyacheslav Ivanov bbf33e8e4d
format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 19:53:48 +03:00

19 lines
425 B
C++

#ifndef UTIL_LISTUTIL_HPP_
#define UTIL_LISTUTIL_HPP_
#include <algorithm>
#include <queue>
#include <string>
#include <vector>
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_HPP_