[/ 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:data data] [simplesect Authors] * Glen Fernandes [endsimplesect] [section Overview] The header provides function templates `data` to obtain the pointer to the first element in a range. [endsect] [section Reference] ``` namespace boost { template constexpr auto data(C& c) noexcept(noexcept(c.data())) -> decltype(c.data()); template constexpr auto data(const C& c) noexcept(noexcept(c.data())) -> decltype(c.data()); template constexpr T* data(T(&a)[N]) noexcept; template constexpr const T* data(std::initializer_list l) noexcept; } /* boost */ ``` [section Functions] [variablelist [[`template constexpr auto data(C& c) noexcept(noexcept(c.data())) -> decltype(c.data());`] [Returns `c.data()`.]] [[`template constexpr auto data(const C& c) noexcept(noexcept(c.data())) -> decltype(c.data());`] [Returns `c.data()`.]] [[`template constexpr T* data(T(&a)[N]) noexcept;`] [Returns `a`.]] [[`template constexpr const T* data(std::initializer_list l) noexcept;`] [Returns `l.begin()`.]]] [endsect] [endsect] [endsect]