sl@0
|
1 |
|
sl@0
|
2 |
#ifndef BOOST_MPL_EMPTY_SEQUENCE_HPP_INCLUDED
|
sl@0
|
3 |
#define BOOST_MPL_EMPTY_SEQUENCE_HPP_INCLUDED
|
sl@0
|
4 |
|
sl@0
|
5 |
// Copyright Aleksey Gurtovoy 2004
|
sl@0
|
6 |
// Copyright Alexander Nasonov 2004
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Distributed under the Boost Software License, Version 1.0.
|
sl@0
|
9 |
// (See accompanying file LICENSE_1_0.txt or copy at
|
sl@0
|
10 |
// http://www.boost.org/LICENSE_1_0.txt)
|
sl@0
|
11 |
//
|
sl@0
|
12 |
// See http://www.boost.org/libs/mpl for documentation.
|
sl@0
|
13 |
|
sl@0
|
14 |
// $Source: /cvsroot/boost/boost/boost/mpl/empty_sequence.hpp,v $
|
sl@0
|
15 |
// $Date: 2004/11/28 01:53:40 $
|
sl@0
|
16 |
// $Revision: 1.2 $
|
sl@0
|
17 |
|
sl@0
|
18 |
#include <boost/mpl/size_fwd.hpp>
|
sl@0
|
19 |
#include <boost/mpl/int.hpp>
|
sl@0
|
20 |
#include <boost/mpl/iterator_tags.hpp>
|
sl@0
|
21 |
|
sl@0
|
22 |
namespace boost { namespace mpl {
|
sl@0
|
23 |
|
sl@0
|
24 |
struct empty_sequence
|
sl@0
|
25 |
{
|
sl@0
|
26 |
struct tag;
|
sl@0
|
27 |
struct begin { typedef random_access_iterator_tag category; };
|
sl@0
|
28 |
typedef begin end;
|
sl@0
|
29 |
};
|
sl@0
|
30 |
|
sl@0
|
31 |
template<>
|
sl@0
|
32 |
struct size_impl<empty_sequence::tag>
|
sl@0
|
33 |
{
|
sl@0
|
34 |
template< typename Sequence > struct apply
|
sl@0
|
35 |
: int_<0>
|
sl@0
|
36 |
{
|
sl@0
|
37 |
};
|
sl@0
|
38 |
};
|
sl@0
|
39 |
|
sl@0
|
40 |
}}
|
sl@0
|
41 |
|
sl@0
|
42 |
#endif // #ifndef BOOST_MPL_EMPTY_SEQUENCE_HPP_INCLUDED
|