Kùzu C++ API
Loading...
Searching...
No Matches
array_utils.h
Go to the documentation of this file.
1#pragma once
2
3#include <algorithm>
4#include <array>
5#include <cstddef>
6
7namespace kuzu::common {
8template<typename T, size_t N1, size_t N2>
9constexpr std::array<T, N1 + N2> arrayConcat(const std::array<T, N1>& arr1,
10 const std::array<T, N2>& arr2) {
11 std::array<T, N1 + N2> ret{};
12 std::copy_n(arr1.cbegin(), arr1.size(), ret.begin());
13 std::copy_n(arr2.cbegin(), arr2.size(), ret.begin() + arr1.size());
14 return ret;
15}
16} // namespace kuzu::common
Definition array_utils.h:7
constexpr std::array< T, N1+N2 > arrayConcat(const std::array< T, N1 > &arr1, const std::array< T, N2 > &arr2)
Definition array_utils.h:9