]> AND Private Git Repository - canny.git/blob - stc/exp/ml_stc_linux_make_v1.0/include/boost/mpl/vector/aux_/clear.hpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
b9ddad63ea086402ae06679ce9c63fa1ae3c045f
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / include / boost / mpl / vector / aux_ / clear.hpp
1 \r
2 #ifndef BOOST_MPL_VECTOR_AUX_CLEAR_HPP_INCLUDED\r
3 #define BOOST_MPL_VECTOR_AUX_CLEAR_HPP_INCLUDED\r
4 \r
5 // Copyright Aleksey Gurtovoy 2000-2004\r
6 //\r
7 // Distributed under the Boost Software License, Version 1.0. \r
8 // (See accompanying file LICENSE_1_0.txt or copy at \r
9 // http://www.boost.org/LICENSE_1_0.txt)\r
10 //\r
11 // See http://www.boost.org/libs/mpl for documentation.\r
12 \r
13 // $Id: clear.hpp 49267 2008-10-11 06:19:02Z agurtovoy $\r
14 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $\r
15 // $Revision: 49267 $\r
16 \r
17 #include <boost/mpl/clear_fwd.hpp>\r
18 #include <boost/mpl/vector/aux_/vector0.hpp>\r
19 #include <boost/mpl/vector/aux_/tag.hpp>\r
20 #include <boost/mpl/aux_/config/typeof.hpp>\r
21 #include <boost/mpl/aux_/config/ctps.hpp>\r
22 \r
23 namespace boost { namespace mpl {\r
24 \r
25 #if defined(BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES)\r
26 \r
27 template<>\r
28 struct clear_impl< aux::vector_tag >\r
29 {\r
30     template< typename Vector > struct apply\r
31     {\r
32         typedef vector0<> type;\r
33     };\r
34 };\r
35 \r
36 #else\r
37 \r
38 #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)\r
39 \r
40 template< long N >\r
41 struct clear_impl< aux::vector_tag<N> >\r
42 {\r
43     template< typename Vector > struct apply\r
44     {\r
45         typedef vector0<> type;\r
46     };\r
47 };\r
48 \r
49 #endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION\r
50 \r
51 #endif // BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES\r
52 \r
53 }}\r
54 \r
55 #endif // BOOST_MPL_VECTOR_AUX_CLEAR_HPP_INCLUDED\r