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

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

http://pythonocc.googlecode.com/
C++ Header | 30 lines | 18 code | 4 blank | 8 comment | 0 complexity | be079ecf19814743c726e879b0323abe 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#ifndef PHOENIX_ALGORITHM_DETAIL_DECAY_ARRAY_HPP
11#define PHOENIX_ALGORITHM_DETAIL_DECAY_ARRAY_HPP
12
13namespace boost { namespace phoenix {
14namespace detail
15{
16  template<typename T>
17  struct decay_array
18  {
19      typedef T type;
20  };
21
22  template<typename T, int N>
23  struct decay_array<T[N]>
24  {
25      typedef T* type;
26  };
27}
28}}
29
30#endif