Luna::prev

template <typename _BidirIt>
_BidirIt prev(_BidirIt it, isize n=1)

Gets one iterator to the last nth element of the element pointed by the input iterator.

Parameters

  • in it

    The base iterator.

  • in n

    The position relative to the base iterator.

Return value

Returns the iterator to the last nth element of the element pointed by the input iterator.