More all-rounded implementation of the new objecty features, several bugfixes, and updates to the standard library to behave. Vector still needs a bit more work for some operations
This commit is contained in:
@@ -46,6 +46,14 @@ std::vector<T> reverse(std::vector<T> vec) {
|
||||
return flat;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
std::vector<T> dereferenced(std::vector<T*> vec) {
|
||||
std::vector<T> de;
|
||||
for (T* i:vec)
|
||||
de.push_back(*i);
|
||||
return de;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
std::vector<T> slice(std::vector<T> vec, int begin, int end, int step = 1) {
|
||||
std::vector<T> toReturn;
|
||||
|
||||
Reference in New Issue
Block a user