view: add 'tail' query
This commit is contained in:
parent
e7ba296011
commit
b0d29f94e9
12
view.hpp
12
view.hpp
@ -348,6 +348,18 @@ namespace cruft {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------
|
||||||
|
template <
|
||||||
|
typename IndexT,
|
||||||
|
typename = std::enable_if_t<std::is_integral_v<IndexT>>
|
||||||
|
>
|
||||||
|
constexpr auto
|
||||||
|
tail (IndexT idx) const
|
||||||
|
{
|
||||||
|
return std::get<1> (split (idx));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
template <
|
template <
|
||||||
typename IndexT,
|
typename IndexT,
|
||||||
|
Loading…
Reference in New Issue
Block a user