]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /*! |
2 | @file | |
3 | Forward declares `boost::hana::size`. | |
4 | ||
b32b8144 | 5 | @copyright Louis Dionne 2013-2017 |
7c673cae FG |
6 | Distributed under the Boost Software License, Version 1.0. |
7 | (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) | |
8 | */ | |
9 | ||
10 | #ifndef BOOST_HANA_FWD_SIZE_HPP | |
11 | #define BOOST_HANA_FWD_SIZE_HPP | |
12 | ||
13 | #include <boost/hana/config.hpp> | |
14 | #include <boost/hana/fwd/length.hpp> | |
15 | ||
16 | ||
1e59de90 | 17 | namespace boost { namespace hana { |
7c673cae FG |
18 | //! Equivalent to `length`; provided for consistency with the |
19 | //! standard library. | |
20 | //! @ingroup group-Foldable | |
21 | //! | |
22 | //! This method is an alias to `length` provided for convenience and | |
23 | //! consistency with the standard library. As an alias, `size` is not | |
24 | //! tag-dispatched on its own and `length` should be customized instead. | |
25 | //! | |
26 | //! | |
27 | //! Example | |
28 | //! ------- | |
29 | //! @include example/size.cpp | |
1e59de90 TL |
30 | BOOST_HANA_INLINE_VARIABLE constexpr auto size = hana::length; |
31 | }} // end namespace boost::hana | |
7c673cae FG |
32 | |
33 | #endif // !BOOST_HANA_FWD_SIZE_HPP |