2 Copyright 2019 Glen Joseph Fernandes
5 Distributed under the Boost Software License, Version 1.0.
6 (http://www.boost.org/LICENSE_1_0.txt)
8 #ifndef BOOST_CORE_FIRST_SCALAR_HPP
9 #define BOOST_CORE_FIRST_SCALAR_HPP
11 #include <boost/config.hpp>
22 template<class T, std::size_t N>
23 struct make_scalar<T[N]> {
24 typedef typename make_scalar<T>::type type;
30 BOOST_CONSTEXPR inline T*
31 first_scalar(T* p) BOOST_NOEXCEPT
36 template<class T, std::size_t N>
37 BOOST_CONSTEXPR inline typename detail::make_scalar<T>::type*
38 first_scalar(T (*p)[N]) BOOST_NOEXCEPT
40 return boost::first_scalar(&(*p)[0]);