epoc32/include/stdapis/boost/mpl/aux_/push_back_impl.hpp
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
williamr@2
     1
williamr@2
     2
#ifndef BOOST_MPL_AUX_PUSH_BACK_IMPL_HPP_INCLUDED
williamr@2
     3
#define BOOST_MPL_AUX_PUSH_BACK_IMPL_HPP_INCLUDED
williamr@2
     4
williamr@2
     5
// Copyright Aleksey Gurtovoy 2000-2004
williamr@2
     6
//
williamr@2
     7
// Distributed under the Boost Software License, Version 1.0. 
williamr@2
     8
// (See accompanying file LICENSE_1_0.txt or copy at 
williamr@2
     9
// http://www.boost.org/LICENSE_1_0.txt)
williamr@2
    10
//
williamr@2
    11
// See http://www.boost.org/libs/mpl for documentation.
williamr@2
    12
williamr@2
    13
// $Source: /cvsroot/boost/boost/boost/mpl/aux_/push_back_impl.hpp,v $
williamr@2
    14
// $Date: 2004/09/02 15:40:44 $
williamr@2
    15
// $Revision: 1.4 $
williamr@2
    16
williamr@2
    17
#include <boost/mpl/push_back_fwd.hpp>
williamr@2
    18
#include <boost/mpl/aux_/has_type.hpp>
williamr@2
    19
#include <boost/mpl/aux_/traits_lambda_spec.hpp>
williamr@2
    20
#include <boost/mpl/aux_/config/forwarding.hpp>
williamr@2
    21
#include <boost/mpl/aux_/config/static_constant.hpp>
williamr@2
    22
williamr@2
    23
namespace boost { namespace mpl {
williamr@2
    24
williamr@2
    25
// agurt 05/feb/04: no default implementation; the stub definition is needed 
williamr@2
    26
// to enable the default 'has_push_back' implementation below
williamr@2
    27
template< typename Tag >
williamr@2
    28
struct push_back_impl
williamr@2
    29
{
williamr@2
    30
    template< typename Sequence, typename T > struct apply {};
williamr@2
    31
};
williamr@2
    32
williamr@2
    33
template< typename Tag >
williamr@2
    34
struct has_push_back_impl
williamr@2
    35
{
williamr@2
    36
    template< typename Seq > struct apply
williamr@2
    37
#if !defined(BOOST_MPL_CFG_NO_NESTED_FORWARDING)
williamr@2
    38
        : aux::has_type< push_back<Seq,int> >
williamr@2
    39
    {
williamr@2
    40
#else
williamr@2
    41
    {
williamr@2
    42
        typedef aux::has_type< push_back<Seq,int> > type;
williamr@2
    43
        BOOST_STATIC_CONSTANT(bool, value = 
williamr@2
    44
              (aux::has_type< push_back<Seq,int> >::value)
williamr@2
    45
            );
williamr@2
    46
#endif
williamr@2
    47
    };
williamr@2
    48
};
williamr@2
    49
williamr@2
    50
BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC(2, push_back_impl)
williamr@2
    51
BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC(1, has_push_back_impl)
williamr@2
    52
williamr@2
    53
}}
williamr@2
    54
williamr@2
    55
#endif // BOOST_MPL_AUX_PUSH_BACK_IMPL_HPP_INCLUDED