Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:47:40

0001 // Copyright 2005 Daniel Wallin. 
0002 // Copyright 2005 Joel de Guzman.
0003 //
0004 // Use, modification and distribution is subject to the Boost Software 
0005 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0006 // http://www.boost.org/LICENSE_1_0.txt)
0007 //
0008 // Modeled after range_ex, Copyright 2004 Eric Niebler
0009 
0010 #ifndef BOOST_PHOENIX_ALGORITHM_DETAIL_DECAY_ARRAY_HPP
0011 #define BOOST_PHOENIX_ALGORITHM_DETAIL_DECAY_ARRAY_HPP
0012 
0013 namespace boost { namespace phoenix {
0014 namespace detail
0015 {
0016   template<typename T>
0017   struct decay_array
0018   {
0019       typedef T type;
0020   };
0021 
0022   template<typename T, int N>
0023   struct decay_array<T[N]>
0024   {
0025       typedef T* type;
0026   };
0027 
0028   template<typename T, int N>
0029   struct decay_array<T (&)[N]>
0030   {
0031       typedef T* type;
0032   };
0033 }
0034 }}
0035 
0036 #endif