This commit is contained in:
Chao Liu
2019-08-03 14:33:39 -05:00
parent c2d246696f
commit 4a1e97cf86
6 changed files with 50 additions and 33 deletions

View File

@@ -8,6 +8,21 @@
namespace ck {
template <class>
struct is_static : integral_constant<bool, false>
{
};
template <class T, T X>
struct is_static<integral_constant<T, X>> : integral_constant<bool, true>
{
};
template <index_t... Is>
struct is_static<Sequence<Is...>> : integral_constant<bool, true>
{
};
// RemainLengths: Sequence<...>
template <class RemainLengths>
struct static_ford_impl