diff --git a/include/frg/array.hpp b/include/frg/array.hpp index 0184edf..5f9158e 100644 --- a/include/frg/array.hpp +++ b/include/frg/array.hpp @@ -128,6 +128,16 @@ constexpr auto array_concat(const Ts &...arrays) { namespace std { +template +constexpr size_t size(const T (&array)[N]) noexcept { + return N; +} + +template +constexpr ptrdiff_t ssize(const T (&array)[N]) noexcept { + return N; +} + template constexpr T &get(frg::array &a) noexcept { static_assert(I < N, "array index is not within bounds");