1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/mpl/push_back.hpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,53 @@
1.4 +
1.5 +#ifndef BOOST_MPL_PUSH_BACK_HPP_INCLUDED
1.6 +#define BOOST_MPL_PUSH_BACK_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/push_back.hpp,v $
1.17 +// $Date: 2004/09/02 15:40:42 $
1.18 +// $Revision: 1.4 $
1.19 +
1.20 +#include <boost/mpl/push_back_fwd.hpp>
1.21 +#include <boost/mpl/aux_/push_back_impl.hpp>
1.22 +#include <boost/mpl/sequence_tag.hpp>
1.23 +#include <boost/mpl/aux_/na_spec.hpp>
1.24 +#include <boost/mpl/aux_/lambda_support.hpp>
1.25 +
1.26 +namespace boost { namespace mpl {
1.27 +
1.28 +template<
1.29 + typename BOOST_MPL_AUX_NA_PARAM(Sequence)
1.30 + , typename BOOST_MPL_AUX_NA_PARAM(T)
1.31 + >
1.32 +struct push_back
1.33 + : push_back_impl< typename sequence_tag<Sequence>::type >
1.34 + ::template apply< Sequence,T >
1.35 +{
1.36 + BOOST_MPL_AUX_LAMBDA_SUPPORT(2,push_back,(Sequence,T))
1.37 +};
1.38 +
1.39 +
1.40 +template<
1.41 + typename BOOST_MPL_AUX_NA_PARAM(Sequence)
1.42 + >
1.43 +struct has_push_back
1.44 + : has_push_back_impl< typename sequence_tag<Sequence>::type >
1.45 + ::template apply< Sequence >
1.46 +{
1.47 + BOOST_MPL_AUX_LAMBDA_SUPPORT(1,has_push_back,(Sequence))
1.48 +};
1.49 +
1.50 +
1.51 +BOOST_MPL_AUX_NA_SPEC(2, push_back)
1.52 +BOOST_MPL_AUX_NA_SPEC(1, has_push_back)
1.53 +
1.54 +}}
1.55 +
1.56 +#endif // BOOST_MPL_PUSH_BACK_HPP_INCLUDED