epoc32/include/stdapis/boost/mpl/aux_/arity.hpp
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
williamr@4
     2
#ifndef BOOST_MPL_AUX_ARITY_HPP_INCLUDED
williamr@4
     3
#define BOOST_MPL_AUX_ARITY_HPP_INCLUDED
williamr@2
     4
williamr@4
     5
// Copyright Aleksey Gurtovoy 2001-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@4
    13
// $Source: /cvsroot/boost/boost/boost/mpl/aux_/arity.hpp,v $
williamr@4
    14
// $Date: 2004/09/02 15:40:43 $
williamr@4
    15
// $Revision: 1.6 $
williamr@2
    16
williamr@4
    17
#include <boost/mpl/aux_/config/dtp.hpp>
williamr@2
    18
williamr@4
    19
#if defined(BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES)
williamr@4
    20
williamr@4
    21
#   include <boost/mpl/aux_/nttp_decl.hpp>
williamr@4
    22
#   include <boost/mpl/aux_/config/static_constant.hpp>
williamr@4
    23
williamr@4
    24
namespace boost { namespace mpl { namespace aux {
williamr@4
    25
williamr@4
    26
// agurt, 15/mar/02: it's possible to implement the template so that it will 
williamr@4
    27
// "just work" and do not require any specialization, but not on the compilers
williamr@4
    28
// that require the arity workaround in the first place
williamr@4
    29
template< typename F, BOOST_MPL_AUX_NTTP_DECL(int, N) >
williamr@4
    30
struct arity
williamr@4
    31
{
williamr@4
    32
    BOOST_STATIC_CONSTANT(int, value = N);
williamr@4
    33
};
williamr@4
    34
williamr@4
    35
}}}
williamr@4
    36
williamr@4
    37
#endif // BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES
williamr@4
    38
williamr@4
    39
#endif // BOOST_MPL_AUX_ARITY_HPP_INCLUDED