diff --git a/src/include/allocator.h b/src/include/allocator.h index aaff744..6eb8a82 100644 --- a/src/include/allocator.h +++ b/src/include/allocator.h @@ -68,6 +68,18 @@ namespace MultiArrayTools { template using vector = std::vector>; + + template + inline std::vector toStdVec(const vector& v) + { + return std::vector(v.begin(), v.end()); + } + + template + inline vector toMatVec(const std::vector& v) + { + return vector(v.begin(), v.end()); + } } // namespace MultiArrayTools