size.hpp 970 B

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