epoc32/include/stdapis/boost/mpl/empty.hpp
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/stdapis/boost/mpl/empty.hpp	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ b/epoc32/include/stdapis/boost/mpl/empty.hpp	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -1,67 +1,39 @@
     1.4 -// Boost.Range library
     1.5 +
     1.6 +#ifndef BOOST_MPL_EMPTY_HPP_INCLUDED
     1.7 +#define BOOST_MPL_EMPTY_HPP_INCLUDED
     1.8 +
     1.9 +// Copyright Aleksey Gurtovoy 2000-2004
    1.10  //
    1.11 -//  Copyright Thorsten Ottosen 2003-2004. Use, modification and
    1.12 -//  distribution is subject to the Boost Software License, Version
    1.13 -//  1.0. (See accompanying file LICENSE_1_0.txt or copy at
    1.14 -//  http://www.boost.org/LICENSE_1_0.txt)
    1.15 +// Distributed under the Boost Software License, Version 1.0. 
    1.16 +// (See accompanying file LICENSE_1_0.txt or copy at 
    1.17 +// http://www.boost.org/LICENSE_1_0.txt)
    1.18  //
    1.19 -// For more information, see http://www.boost.org/libs/range/
    1.20 -//
    1.21 +// See http://www.boost.org/libs/mpl for documentation.
    1.22  
    1.23 -#ifndef BOOST_RANGE_EMPTY_HPP
    1.24 -#define BOOST_RANGE_EMPTY_HPP
    1.25 +// $Source: /cvsroot/boost/boost/boost/mpl/empty.hpp,v $
    1.26 +// $Date: 2004/09/02 15:40:41 $
    1.27 +// $Revision: 1.4 $
    1.28  
    1.29 -#if defined(_MSC_VER) && (_MSC_VER >= 1200)
    1.30 -# pragma once
    1.31 -#endif
    1.32 +#include <boost/mpl/empty_fwd.hpp>
    1.33 +#include <boost/mpl/sequence_tag.hpp>
    1.34 +#include <boost/mpl/aux_/empty_impl.hpp>
    1.35 +#include <boost/mpl/aux_/na_spec.hpp>
    1.36 +#include <boost/mpl/aux_/lambda_support.hpp>
    1.37  
    1.38 -#include <boost/range/config.hpp>
    1.39 -//#ifdef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
    1.40 -//#include <boost/range/detail/empty.hpp>
    1.41 -//#else
    1.42 +namespace boost { namespace mpl {
    1.43  
    1.44 -#include <boost/range/begin.hpp>
    1.45 -#include <boost/range/end.hpp>
    1.46 +template<
    1.47 +      typename BOOST_MPL_AUX_NA_PARAM(Sequence)
    1.48 +    >
    1.49 +struct empty
    1.50 +    : empty_impl< typename sequence_tag<Sequence>::type >
    1.51 +        ::template apply< Sequence >
    1.52 +{
    1.53 +    BOOST_MPL_AUX_LAMBDA_SUPPORT(1,empty,(Sequence))
    1.54 +};
    1.55  
    1.56 -namespace boost 
    1.57 -{ 
    1.58 -namespace range_detail 
    1.59 -{
    1.60 +BOOST_MPL_AUX_NA_SPEC(1, empty)
    1.61  
    1.62 -        //////////////////////////////////////////////////////////////////////
    1.63 -        // primary template
    1.64 -        //////////////////////////////////////////////////////////////////////
    1.65 +}}
    1.66  
    1.67 -        template< typename C >
    1.68 -        inline bool empty( const C& c )
    1.69 -        {
    1.70 -            return boost::begin( c ) == boost::end( c );
    1.71 -        }
    1.72 -
    1.73 -        //////////////////////////////////////////////////////////////////////
    1.74 -        // string
    1.75 -        //////////////////////////////////////////////////////////////////////
    1.76 -
    1.77 -        inline bool empty( const char* const& s )
    1.78 -        {
    1.79 -            return s == 0 || s[0] == 0;
    1.80 -        }
    1.81 -
    1.82 -        inline bool empty( const wchar_t* const& s )
    1.83 -        {
    1.84 -            return s == 0 || s[0] == 0;
    1.85 -        }
    1.86 -        
    1.87 -} // namespace 'range_detail'
    1.88 -
    1.89 -template< class T >
    1.90 -inline bool empty( const T& r )
    1.91 -{
    1.92 -    return range_detail::empty( r );
    1.93 -}
    1.94 -
    1.95 -} // namepace 'boost'
    1.96 -
    1.97 -//#endif //  BOOST_NO_FUNCTION_TEMPLATE_ORDERING
    1.98 -
    1.99 -#endif
   1.100 +#endif // BOOST_MPL_EMPTY_HPP_INCLUDED