Last change
on this file since 33 was
29,
checked in by landauf, 17 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
975 bytes
|
Rev | Line | |
---|
[29] | 1 | |
---|
| 2 | #ifndef BOOST_MPL_EMPTY_SEQUENCE_HPP_INCLUDED |
---|
| 3 | #define BOOST_MPL_EMPTY_SEQUENCE_HPP_INCLUDED |
---|
| 4 | |
---|
| 5 | // Copyright Aleksey Gurtovoy 2004 |
---|
| 6 | // Copyright Alexander Nasonov 2004 |
---|
| 7 | // |
---|
| 8 | // Distributed under the Boost Software License, Version 1.0. |
---|
| 9 | // (See accompanying file LICENSE_1_0.txt or copy at |
---|
| 10 | // http://www.boost.org/LICENSE_1_0.txt) |
---|
| 11 | // |
---|
| 12 | // See http://www.boost.org/libs/mpl for documentation. |
---|
| 13 | |
---|
| 14 | // $Source: /cvsroot/boost/boost/boost/mpl/empty_sequence.hpp,v $ |
---|
| 15 | // $Date: 2004/11/28 01:53:40 $ |
---|
| 16 | // $Revision: 1.2 $ |
---|
| 17 | |
---|
| 18 | #include <boost/mpl/size_fwd.hpp> |
---|
| 19 | #include <boost/mpl/int.hpp> |
---|
| 20 | #include <boost/mpl/iterator_tags.hpp> |
---|
| 21 | |
---|
| 22 | namespace boost { namespace mpl { |
---|
| 23 | |
---|
| 24 | struct empty_sequence |
---|
| 25 | { |
---|
| 26 | struct tag; |
---|
| 27 | struct begin { typedef random_access_iterator_tag category; }; |
---|
| 28 | typedef begin end; |
---|
| 29 | }; |
---|
| 30 | |
---|
| 31 | template<> |
---|
| 32 | struct size_impl<empty_sequence::tag> |
---|
| 33 | { |
---|
| 34 | template< typename Sequence > struct apply |
---|
| 35 | : int_<0> |
---|
| 36 | { |
---|
| 37 | }; |
---|
| 38 | }; |
---|
| 39 | |
---|
| 40 | }} |
---|
| 41 | |
---|
| 42 | #endif // #ifndef BOOST_MPL_EMPTY_SEQUENCE_HPP_INCLUDED |
---|
Note: See
TracBrowser
for help on using the repository browser.