~ubuntu-branches/ubuntu/warty/aqsis/warty

« back to all changes in this revision

Viewing changes to boost/boost/mpl/aux_/preprocessed/no_ctps/template_arity.hpp

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-08-24 07:25:04 UTC
  • Revision ID: james.westby@ubuntu.com-20040824072504-zf993vnevvisdsvb
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// preprocessed version of 'boost/mpl/aux_/template_arity.hpp' header
 
2
// see the original for copyright information
 
3
 
 
4
namespace boost { namespace mpl { namespace aux {
 
5
 
 
6
template< bool >
 
7
struct template_arity_impl
 
8
{
 
9
    template< typename F > struct result_
 
10
    {
 
11
        static int const value = -1;
 
12
    };
 
13
};
 
14
 
 
15
template<>
 
16
struct template_arity_impl<true>
 
17
{
 
18
    template< typename F > struct result_
 
19
    {
 
20
        static int const value = F::arity;
 
21
 
 
22
    };
 
23
};
 
24
 
 
25
template< typename F >
 
26
struct template_arity
 
27
    : template_arity_impl< ::boost::mpl::aux::has_rebind<F>::value >
 
28
        ::template result_<F>
 
29
{
 
30
};
 
31
 
 
32
}}} // namespace boost::mpl::aux
 
33