statc_index_id
This commit is contained in:
parent
18748a651a
commit
88c40d702a
1 changed files with 13 additions and 0 deletions
|
@ -37,6 +37,19 @@ namespace CNORXZ
|
||||||
template <SizeT J>
|
template <SizeT J>
|
||||||
constexpr decltype(auto) operator!=(const IndexId<J>& a) const;
|
constexpr decltype(auto) operator!=(const IndexId<J>& a) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
struct static_index_id
|
||||||
|
{
|
||||||
|
static constexpr SizeT value = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
template <SizeT I>
|
||||||
|
struct static_index_id<IndexId<I>>
|
||||||
|
{
|
||||||
|
static constexpr SizeT value = I;
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue