mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
implement inter-chunk structure generation
This commit is contained in:
parent
03ba7c9539
commit
a413c5d09e
5 changed files with 67 additions and 9 deletions
|
|
@ -1,15 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
#include <algorithm>
|
||||
#include <queue>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace util {
|
||||
template <class T>
|
||||
bool contains(const std::vector<T>& vec, const T& value) {
|
||||
inline bool contains(const std::vector<T>& vec, const T& value) {
|
||||
return std::find(vec.begin(), vec.end(), value) != vec.end();
|
||||
}
|
||||
|
||||
template <class T>
|
||||
inline void concat(std::vector<T>& a, const std::vector<T>& b) {
|
||||
a.reserve(a.size() + b.size());
|
||||
a.insert(a.end(), b.begin(), b.end());
|
||||
}
|
||||
|
||||
std::string to_string(const std::vector<std::string>& vec);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue