| 1 | /* |
| 2 | Copyright 2018 Glen Joseph Fernandes |
| 3 | (glenjofe@gmail.com) |
| 4 | |
| 5 | Distributed under the Boost Software License, |
| 6 | Version 1.0. (See accompanying file LICENSE_1_0.txt |
| 7 | or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 8 | */ |
| 9 | |
| 10 | #ifndef BOOST_TT_IS_UNBOUNDED_ARRAY_HPP_INCLUDED |
| 11 | #define BOOST_TT_IS_UNBOUNDED_ARRAY_HPP_INCLUDED |
| 12 | |
| 13 | #include <boost/type_traits/integral_constant.hpp> |
| 14 | |
| 15 | namespace boost { |
| 16 | |
| 17 | template<class T> |
| 18 | struct is_unbounded_array |
| 19 | : false_type { }; |
| 20 | |
| 21 | #if !defined(BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS) |
| 22 | template<class T> |
| 23 | struct is_unbounded_array<T[]> |
| 24 | : true_type { }; |
| 25 | |
| 26 | template<class T> |
| 27 | struct is_unbounded_array<const T[]> |
| 28 | : true_type { }; |
| 29 | |
| 30 | template<class T> |
| 31 | struct is_unbounded_array<volatile T[]> |
| 32 | : true_type { }; |
| 33 | |
| 34 | template<class T> |
| 35 | struct is_unbounded_array<const volatile T[]> |
| 36 | : true_type { }; |
| 37 | #endif |
| 38 | |
| 39 | } /* boost */ |
| 40 | |
| 41 | #endif |
| 42 | |