]> AND Private Git Repository - canny.git/blob - stc/exp/ml_stc_linux_make_v1.0/include/boost/mpl/empty_sequence.hpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
20c1aa09fac35a9fdb24c25efabcfb399d26f510
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / include / boost / mpl / empty_sequence.hpp
1 \r
2 #ifndef BOOST_MPL_EMPTY_SEQUENCE_HPP_INCLUDED\r
3 #define BOOST_MPL_EMPTY_SEQUENCE_HPP_INCLUDED\r
4 \r
5 // Copyright Aleksey Gurtovoy 2004\r
6 // Copyright Alexander Nasonov 2004\r
7 //\r
8 // Distributed under the Boost Software License, Version 1.0. \r
9 // (See accompanying file LICENSE_1_0.txt or copy at \r
10 // http://www.boost.org/LICENSE_1_0.txt)\r
11 //\r
12 // See http://www.boost.org/libs/mpl for documentation.\r
13 \r
14 // $Id: empty_sequence.hpp 49267 2008-10-11 06:19:02Z agurtovoy $\r
15 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $\r
16 // $Revision: 49267 $\r
17 \r
18 #include <boost/mpl/size_fwd.hpp>\r
19 #include <boost/mpl/int.hpp>\r
20 #include <boost/mpl/iterator_tags.hpp>\r
21 \r
22 namespace boost { namespace mpl {\r
23 \r
24 struct empty_sequence\r
25 {\r
26     struct tag; \r
27     struct begin { typedef random_access_iterator_tag category; };    \r
28     typedef begin end;\r
29 };\r
30 \r
31 template<>\r
32 struct size_impl<empty_sequence::tag>\r
33 {\r
34     template< typename Sequence > struct apply\r
35         : int_<0>\r
36     {\r
37     };\r
38 };\r
39 \r
40 }}\r
41 \r
42 #endif // #ifndef BOOST_MPL_EMPTY_SEQUENCE_HPP_INCLUDED\r