[/ Copyright 2023 Glen Joseph Fernandes (glenjofe@gmail.com) Distributed under the Boost Software License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) ] [section:make_span make_span] [simplesect Authors] * Glen Fernandes [endsimplesect] [section Overview] The header provides function templates `make_span` to conveniently create `span` objects. They are useful before C++17 where Class Template Argument Deduction (CTAD) is not available. [endsect] [section Reference] ``` namespace boost { template constexpr span make_span(I* d, std::size_t n) noexcept; template constexpr span make_span(I* b, I* e) noexcept; template constexpr span make_span(T(&a)[N]) noexcept; template constexpr span make_span(std::array& a) noexcept; template constexpr span make_span(const std::array& a) noexcept; template span > > make_span(R&& r); } /* boost */ ``` [section Functions] [variablelist [[`template span make_span(I* f, std::size_t c);`] [Returns `span(f, c)`.]] [[`template span make_span(I* f, I* l);`] [Returns `span(f, l)`.]] [[`template span make_span(T(&a)[N]);`] [Returns `span(a)`.]] [[`template span make_span(std::array& a);`] [Returns `span(a)`.]] [[`template span make_span(const std::array& a);`] [Returns `span(a)`.]] [[`template span > > make_span(R&& r);`] [Returns `span > >(std::forward(r))`.]]] [endsect] [endsect] [endsect]