epoc32/include/stdapis/boost/mpl/has_key.hpp
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
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@2
     2
#ifndef BOOST_MPL_HAS_KEY_HPP_INCLUDED
williamr@2
     3
#define BOOST_MPL_HAS_KEY_HPP_INCLUDED
williamr@2
     4
williamr@2
     5
// Copyright Aleksey Gurtovoy 2003-2004
williamr@2
     6
// Copyright David Abrahams 2003-2004
williamr@2
     7
//
williamr@2
     8
// Distributed under the Boost Software License, Version 1.0. 
williamr@2
     9
// (See accompanying file LICENSE_1_0.txt or copy at 
williamr@2
    10
// http://www.boost.org/LICENSE_1_0.txt)
williamr@2
    11
//
williamr@2
    12
// See http://www.boost.org/libs/mpl for documentation.
williamr@2
    13
williamr@2
    14
// $Source: /cvsroot/boost/boost/boost/mpl/has_key.hpp,v $
williamr@2
    15
// $Date: 2004/09/02 15:40:41 $
williamr@2
    16
// $Revision: 1.3 $
williamr@2
    17
williamr@2
    18
#include <boost/mpl/has_key_fwd.hpp>
williamr@2
    19
#include <boost/mpl/sequence_tag.hpp>
williamr@2
    20
#include <boost/mpl/aux_/has_key_impl.hpp>
williamr@2
    21
#include <boost/mpl/aux_/na_spec.hpp>
williamr@2
    22
#include <boost/mpl/aux_/lambda_support.hpp>
williamr@2
    23
williamr@2
    24
namespace boost { namespace mpl {
williamr@2
    25
williamr@2
    26
template<
williamr@2
    27
      typename BOOST_MPL_AUX_NA_PARAM(AssociativeSequence)
williamr@2
    28
    , typename BOOST_MPL_AUX_NA_PARAM(Key)
williamr@2
    29
    >
williamr@2
    30
struct has_key
williamr@2
    31
    : has_key_impl< typename sequence_tag<AssociativeSequence>::type >
williamr@2
    32
        ::template apply<AssociativeSequence,Key>
williamr@2
    33
{
williamr@2
    34
    BOOST_MPL_AUX_LAMBDA_SUPPORT(2,has_key,(AssociativeSequence,Key))
williamr@2
    35
};
williamr@2
    36
williamr@2
    37
BOOST_MPL_AUX_NA_SPEC(2, has_key)
williamr@2
    38
williamr@2
    39
}}
williamr@2
    40
williamr@2
    41
#endif // BOOST_MPL_HAS_KEY_HPP_INCLUDED