Line | |
---|
1 | /*=============================================================================
|
---|
2 | Copyright (c) 2001-2003 Joel de Guzman
|
---|
3 |
|
---|
4 | Use, modification and distribution is subject to the Boost Software
|
---|
5 | License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
---|
6 | http://www.boost.org/LICENSE_1_0.txt)
|
---|
7 | ==============================================================================*/
|
---|
8 | #if !defined(FUSION_SEQUENCE_TUPLE_SIZE_HPP)
|
---|
9 | #define FUSION_SEQUENCE_TUPLE_SIZE_HPP
|
---|
10 |
|
---|
11 | #include <boost/spirit/fusion/sequence/size.hpp>
|
---|
12 |
|
---|
13 | namespace boost { namespace fusion
|
---|
14 | {
|
---|
15 | ///////////////////////////////////////////////////////////////////////////
|
---|
16 | //
|
---|
17 | // tuple_size metafunction
|
---|
18 | //
|
---|
19 | // Get the size of Sequence. Usage:
|
---|
20 | //
|
---|
21 | // tuple_size<Sequence>::value
|
---|
22 | //
|
---|
23 | // This metafunction is provided here for compatibility with the
|
---|
24 | // tuples TR1 specification. This metafunction forwards to
|
---|
25 | // meta::size<Sequence>.
|
---|
26 | //
|
---|
27 | ///////////////////////////////////////////////////////////////////////////
|
---|
28 | template <typename Sequence>
|
---|
29 | struct tuple_size : meta::size<Sequence> {};
|
---|
30 | }}
|
---|
31 |
|
---|
32 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.