view: add 'tail' query

This commit is contained in:
Danny Robson 2019-01-18 17:19:25 +11:00
parent e7ba296011
commit b0d29f94e9

View File

@ -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 <
typename IndexT,