summaryrefslogtreecommitdiff
path: root/boost/hana/fwd/size.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/hana/fwd/size.hpp')
-rw-r--r--boost/hana/fwd/size.hpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/boost/hana/fwd/size.hpp b/boost/hana/fwd/size.hpp
new file mode 100644
index 0000000000..b3c4e3ba96
--- /dev/null
+++ b/boost/hana/fwd/size.hpp
@@ -0,0 +1,33 @@
+/*!
+@file
+Forward declares `boost::hana::size`.
+
+@copyright Louis Dionne 2013-2016
+Distributed under the Boost Software License, Version 1.0.
+(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
+ */
+
+#ifndef BOOST_HANA_FWD_SIZE_HPP
+#define BOOST_HANA_FWD_SIZE_HPP
+
+#include <boost/hana/config.hpp>
+#include <boost/hana/fwd/length.hpp>
+
+
+BOOST_HANA_NAMESPACE_BEGIN
+ //! Equivalent to `length`; provided for consistency with the
+ //! standard library.
+ //! @ingroup group-Foldable
+ //!
+ //! This method is an alias to `length` provided for convenience and
+ //! consistency with the standard library. As an alias, `size` is not
+ //! tag-dispatched on its own and `length` should be customized instead.
+ //!
+ //!
+ //! Example
+ //! -------
+ //! @include example/size.cpp
+ constexpr auto size = hana::length;
+BOOST_HANA_NAMESPACE_END
+
+#endif // !BOOST_HANA_FWD_SIZE_HPP