fix sindex step size
This commit is contained in:
parent
f0401e50bf
commit
8c35113967
2 changed files with 8 additions and 3 deletions
|
@ -128,10 +128,15 @@ namespace CNORXZ
|
|||
|
||||
template <typename MetaT, SizeT S>
|
||||
template <SizeT I>
|
||||
UPos SIndex<MetaT,S>::stepSize(const IndexId<I>& id) const
|
||||
decltype(auto) SIndex<MetaT,S>::stepSize(const IndexId<I>& id) const
|
||||
{
|
||||
if constexpr(I != 0){
|
||||
return SPos<0>();
|
||||
}
|
||||
else {
|
||||
return UPos(id == this->id() ? 1 : 0);
|
||||
}
|
||||
}
|
||||
|
||||
template <typename MetaT, SizeT S>
|
||||
String SIndex<MetaT,S>::stringMeta() const
|
||||
|
|
|
@ -88,7 +88,7 @@ namespace CNORXZ
|
|||
|
||||
/** @copydoc IndexInterface::stepSize() */
|
||||
template <SizeT I>
|
||||
UPos stepSize(const IndexId<I>& id) const;
|
||||
decltype(auto) stepSize(const IndexId<I>& id) const;
|
||||
|
||||
/** @copydoc IndexInterface::stringMeta() */
|
||||
String stringMeta() const;
|
||||
|
|
Loading…
Reference in a new issue