PageRenderTime 39ms CodeModel.GetById 26ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://pythonocc.googlecode.com/
C++ Header | 56 lines | 35 code | 8 blank | 13 comment | 1 complexity | 7e635bb99f47d2039b6ac699fa8a31b3 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_set.hpp
12//
13/////////////////////////////////////////////////////////////////////////////
14
15#if defined(_MSC_VER) && _MSC_VER >= 1000
16# pragma once
17#endif
18
19#ifndef IS_STD_SET_EN_16_12_2004
20#define IS_STD_SET_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_set
29        : boost::mpl::false_
30    {};
31
32    template<
33        class Kty
34      , class Pr
35      , class Alloc
36    >
37    struct is_std_set< ::std::set<Kty,Pr,Alloc> >
38        : boost::mpl::true_
39    {};
40
41    template<class T>
42    struct is_std_multiset
43        : boost::mpl::false_
44    {};
45
46    template<
47        class Kty
48      , class Pr
49      , class Alloc
50    >
51    struct is_std_multiset< ::std::multiset<Kty,Pr,Alloc> >
52        : boost::mpl::true_
53    {};
54}
55
56#endif