Add sp_is_unbounded_array

This commit is contained in:
Peter Dimov committed 2024-10-06 19:58:40 +03:00
1 parent 90fd5a1fc9
commit 7f880bc205
3 files changed
+38

No files matched your search

@@ -22,6 +22,16 @@ template<class T, std::size_t N> struct sp_is_bounded_array< T[N] >: std::true_t
{
};
// std::is_unbounded_array (C++20)
template<class T> struct sp_is_unbounded_array: std::false_type
{
};
template<class T> struct sp_is_unbounded_array< T[] >: std::true_type
{
};
} // namespace detail
} // namespace boost