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