Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 09:53:05

0001 /*!
0002 @file
0003 Forward declares `boost::hana::size`.
0004 
0005 Copyright Louis Dionne 2013-2022
0006 Distributed under the Boost Software License, Version 1.0.
0007 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
0008  */
0009 
0010 #ifndef BOOST_HANA_FWD_SIZE_HPP
0011 #define BOOST_HANA_FWD_SIZE_HPP
0012 
0013 #include <boost/hana/config.hpp>
0014 #include <boost/hana/fwd/length.hpp>
0015 
0016 
0017 namespace boost { namespace hana {
0018     //! Equivalent to `length`; provided for consistency with the
0019     //! standard library.
0020     //! @ingroup group-Foldable
0021     //!
0022     //! This method is an alias to `length` provided for convenience and
0023     //! consistency with the standard library. As an alias, `size` is not
0024     //! tag-dispatched on its own and `length` should be customized instead.
0025     //!
0026     //!
0027     //! Example
0028     //! -------
0029     //! @include example/size.cpp
0030     BOOST_HANA_INLINE_VARIABLE constexpr auto size = hana::length;
0031 }} // end namespace boost::hana
0032 
0033 #endif // !BOOST_HANA_FWD_SIZE_HPP