os/ossrv/ossrv_pub/boost_apis/boost/mpl/empty_sequence.hpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/mpl/empty_sequence.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,42 @@
     1.4 +
     1.5 +#ifndef BOOST_MPL_EMPTY_SEQUENCE_HPP_INCLUDED
     1.6 +#define BOOST_MPL_EMPTY_SEQUENCE_HPP_INCLUDED
     1.7 +
     1.8 +// Copyright Aleksey Gurtovoy 2004
     1.9 +// Copyright Alexander Nasonov 2004
    1.10 +//
    1.11 +// Distributed under the Boost Software License, Version 1.0. 
    1.12 +// (See accompanying file LICENSE_1_0.txt or copy at 
    1.13 +// http://www.boost.org/LICENSE_1_0.txt)
    1.14 +//
    1.15 +// See http://www.boost.org/libs/mpl for documentation.
    1.16 +
    1.17 +// $Source: /cvsroot/boost/boost/boost/mpl/empty_sequence.hpp,v $
    1.18 +// $Date: 2004/11/28 01:53:40 $
    1.19 +// $Revision: 1.2 $
    1.20 +
    1.21 +#include <boost/mpl/size_fwd.hpp>
    1.22 +#include <boost/mpl/int.hpp>
    1.23 +#include <boost/mpl/iterator_tags.hpp>
    1.24 +
    1.25 +namespace boost { namespace mpl {
    1.26 +
    1.27 +struct empty_sequence
    1.28 +{
    1.29 +    struct tag; 
    1.30 +    struct begin { typedef random_access_iterator_tag category; };    
    1.31 +    typedef begin end;
    1.32 +};
    1.33 +
    1.34 +template<>
    1.35 +struct size_impl<empty_sequence::tag>
    1.36 +{
    1.37 +    template< typename Sequence > struct apply
    1.38 +        : int_<0>
    1.39 +    {
    1.40 +    };
    1.41 +};
    1.42 +
    1.43 +}}
    1.44 +
    1.45 +#endif // #ifndef BOOST_MPL_EMPTY_SEQUENCE_HPP_INCLUDED