diff --git a/sarray.hpp b/sarray.hpp index 3a96ad44..377deeb5 100644 --- a/sarray.hpp +++ b/sarray.hpp @@ -94,6 +94,15 @@ namespace util { const std::size_t m_size; }; + + + //------------------------------------------------------------------------- + template + auto + make_sarray (const T(&data)[S], std::size_t count = S) + { + return sarray (data, data + count); + } } #endif