source: NonGTP/Boost/boost/spirit/fusion/iterator/is_iterator.hpp @ 857

Revision 857, 1.1 KB checked in by igarcia, 18 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_ITERATOR_IS_ITERATOR_HPP)
9#define FUSION_ITERATOR_IS_ITERATOR_HPP
10
11#include <boost/type_traits/is_base_and_derived.hpp>
12
13namespace boost { namespace fusion
14{
15    ///////////////////////////////////////////////////////////////////////////
16    //
17    //  is_iterator metafunction
18    //
19    //      Given a type T, returns a value true or false if T is a
20    //      fusion iterator or not. Usage:
21    //
22    //          is_iterator<T>::value
23    //
24    ///////////////////////////////////////////////////////////////////////////
25    struct iterator_root;
26
27    template <typename T>
28    struct is_iterator : is_base_and_derived<iterator_root, T> {};
29
30}}
31
32#endif
Note: See TracBrowser for help on using the repository browser.