1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/mpl/void.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,76 @@
1.4 +
1.5 +#ifndef BOOST_MPL_VOID_HPP_INCLUDED
1.6 +#define BOOST_MPL_VOID_HPP_INCLUDED
1.7 +
1.8 +// Copyright Aleksey Gurtovoy 2001-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/void.hpp,v $
1.17 +// $Date: 2004/09/02 15:40:42 $
1.18 +// $Revision: 1.9 $
1.19 +
1.20 +#include <boost/mpl/void_fwd.hpp>
1.21 +#include <boost/mpl/bool.hpp>
1.22 +#include <boost/mpl/aux_/na_spec.hpp>
1.23 +#include <boost/mpl/aux_/config/msvc.hpp>
1.24 +#include <boost/mpl/aux_/config/workaround.hpp>
1.25 +
1.26 +BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN
1.27 +
1.28 +// [JDG Feb-4-2003] made void_ a complete type to allow it to be
1.29 +// instantiated so that it can be passed in as an object that can be
1.30 +// used to select an overloaded function. Possible use includes signaling
1.31 +// a zero arity functor evaluation call.
1.32 +struct void_ { typedef void_ type; };
1.33 +
1.34 +BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE
1.35 +
1.36 +namespace boost { namespace mpl {
1.37 +
1.38 +template< typename T >
1.39 +struct is_void_
1.40 + : false_
1.41 +{
1.42 +#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
1.43 + using false_::value;
1.44 +#endif
1.45 +};
1.46 +
1.47 +template<>
1.48 +struct is_void_<void_>
1.49 + : true_
1.50 +{
1.51 +#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
1.52 + using true_::value;
1.53 +#endif
1.54 +};
1.55 +
1.56 +template< typename T >
1.57 +struct is_not_void_
1.58 + : true_
1.59 +{
1.60 +#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
1.61 + using true_::value;
1.62 +#endif
1.63 +};
1.64 +
1.65 +template<>
1.66 +struct is_not_void_<void_>
1.67 + : false_
1.68 +{
1.69 +#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
1.70 + using false_::value;
1.71 +#endif
1.72 +};
1.73 +
1.74 +BOOST_MPL_AUX_NA_SPEC(1, is_void_)
1.75 +BOOST_MPL_AUX_NA_SPEC(1, is_not_void_)
1.76 +
1.77 +}}
1.78 +
1.79 +#endif // BOOST_MPL_VOID_HPP_INCLUDED