source: NonGTP/Boost/boost/spirit/fusion/sequence/is_sequence.hpp @ 857

Revision 857, 1.1 KB checked in by igarcia, 19 years ago (diff)
Line 
1/*=============================================================================
2    Copyright (c) 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_IS_SEQUENCE_HPP)
9#define FUSION_SEQUENCE_IS_SEQUENCE_HPP
10
11#include <boost/type_traits/is_base_and_derived.hpp>
12#include <boost/spirit/fusion/sequence/detail/sequence_base.hpp>
13
14namespace boost { namespace fusion
15{
16    ///////////////////////////////////////////////////////////////////////////
17    //
18    //  is_sequence metafunction
19    //
20    //      Given a type T, returns a value true or false if T is a
21    //      fusion sequence or not. Usage:
22    //
23    //          is_sequence<T>::value
24    //
25    ///////////////////////////////////////////////////////////////////////////
26    template <typename T>
27    struct is_sequence : is_base_and_derived<sequence_root, T> {};
28
29}}
30
31#endif
Note: See TracBrowser for help on using the repository browser.