diff options
Diffstat (limited to 'boost/vmd/detail/sequence_size.hpp')
-rw-r--r-- | boost/vmd/detail/sequence_size.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/boost/vmd/detail/sequence_size.hpp b/boost/vmd/detail/sequence_size.hpp new file mode 100644 index 0000000000..0f308eb829 --- /dev/null +++ b/boost/vmd/detail/sequence_size.hpp @@ -0,0 +1,21 @@ + +// (C) Copyright Edward Diener 2011-2015 +// Use, modification and distribution are subject to the Boost Software License, +// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt). + +#if !defined(BOOST_VMD_DETAIL_SEQUENCE_SIZE_HPP) +#define BOOST_VMD_DETAIL_SEQUENCE_SIZE_HPP + +#include <boost/preprocessor/array/size.hpp> +#include <boost/vmd/detail/sequence_to_array.hpp> + +#define BOOST_VMD_DETAIL_SEQUENCE_SIZE(vseq) \ + BOOST_PP_ARRAY_SIZE(BOOST_VMD_DETAIL_SEQUENCE_TO_ARRAY(vseq)) \ +/**/ + +#define BOOST_VMD_DETAIL_SEQUENCE_SIZE_D(d,vseq) \ + BOOST_PP_ARRAY_SIZE(BOOST_VMD_DETAIL_SEQUENCE_TO_ARRAY_D(d,vseq)) \ +/**/ + +#endif /* BOOST_VMD_DETAIL_SEQUENCE_SIZE_HPP */ |