PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/src/contrib/boost/spirit/home/phoenix/stl/algorithm/detail/is_std_map.hpp

http://pythonocc.googlecode.com/
C++ Header | 58 lines | 37 code | 8 blank | 13 comment | 1 complexity | 0159f25584538cf0a16722f8de890aea MD5 | raw file
 1// Copyright 2005 Daniel Wallin.
 2// Copyright 2005 Joel de Guzman.
 3//
 4// Use, modification and distribution is subject to the Boost Software
 5// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
 6// http://www.boost.org/LICENSE_1_0.txt)
 7//
 8// Modeled after range_ex, Copyright 2004 Eric Niebler
 9///////////////////////////////////////////////////////////////////////////////
10//
11// is_std_map.hpp
12//
13/////////////////////////////////////////////////////////////////////////////
14
15#if defined(_MSC_VER) && _MSC_VER >= 1000
16# pragma once
17#endif
18
19#ifndef IS_STD_MAP_EN_16_12_2004
20#define IS_STD_MAP_EN_16_12_2004
21
22#include <boost/mpl/bool.hpp>
23#include <boost/detail/container_fwd.hpp>
24
25namespace boost
26{
27    template<class T>
28    struct is_std_map
29        : boost::mpl::false_
30    {};
31
32    template<
33        class Kty
34      , class Ty
35      , class Pr
36      , class Alloc
37    >
38    struct is_std_map< ::std::map<Kty,Ty,Pr,Alloc> >
39        : boost::mpl::true_
40    {};
41
42    template<class T>
43    struct is_std_multimap
44        : boost::mpl::false_
45    {};
46
47    template<
48        class Kty
49      , class Ty
50      , class Pr
51      , class Alloc
52    >
53    struct is_std_multimap< ::std::multimap<Kty,Ty,Pr,Alloc> >
54        : boost::mpl::true_
55    {};
56}
57
58#endif