1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/mpl/vector/aux_/empty.hpp Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,68 @@
1.4 +
1.5 +#ifndef BOOST_MPL_VECTOR_AUX_EMPTY_HPP_INCLUDED
1.6 +#define BOOST_MPL_VECTOR_AUX_EMPTY_HPP_INCLUDED
1.7 +
1.8 +// Copyright Aleksey Gurtovoy 2000-2004
1.9 +//
1.10 +// Distributed under the Boost Software License, Version 1.0.
1.11 +// (See accompanying file LICENSE_1_0.txt or copy at
1.12 +// http://www.boost.org/LICENSE_1_0.txt)
1.13 +//
1.14 +// See http://www.boost.org/libs/mpl for documentation.
1.15 +
1.16 +// $Source: /cvsroot/boost/boost/boost/mpl/vector/aux_/empty.hpp,v $
1.17 +// $Date: 2004/09/02 15:41:19 $
1.18 +// $Revision: 1.5 $
1.19 +
1.20 +#include <boost/mpl/empty_fwd.hpp>
1.21 +#include <boost/mpl/bool.hpp>
1.22 +#include <boost/mpl/vector/aux_/tag.hpp>
1.23 +#include <boost/mpl/aux_/config/typeof.hpp>
1.24 +#include <boost/mpl/aux_/config/ctps.hpp>
1.25 +#include <boost/type_traits/is_same.hpp>
1.26 +
1.27 +namespace boost { namespace mpl {
1.28 +
1.29 +#if defined(BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES)
1.30 +
1.31 +template<>
1.32 +struct empty_impl< aux::vector_tag >
1.33 +{
1.34 + template< typename Vector > struct apply
1.35 + : is_same<
1.36 + typename Vector::lower_bound_
1.37 + , typename Vector::upper_bound_
1.38 + >
1.39 + {
1.40 + };
1.41 +};
1.42 +
1.43 +#else
1.44 +
1.45 +template<>
1.46 +struct empty_impl< aux::vector_tag<0> >
1.47 +{
1.48 + template< typename Vector > struct apply
1.49 + : true_
1.50 + {
1.51 + };
1.52 +};
1.53 +
1.54 +#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
1.55 +
1.56 +template< long N >
1.57 +struct empty_impl< aux::vector_tag<N> >
1.58 +{
1.59 + template< typename Vector > struct apply
1.60 + : false_
1.61 + {
1.62 + };
1.63 +};
1.64 +
1.65 +#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
1.66 +
1.67 +#endif // BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES
1.68 +
1.69 +}}
1.70 +
1.71 +#endif // BOOST_MPL_VECTOR_AUX_EMPTY_HPP_INCLUDED