| 55 | */ |
| 56 | template <typename TIter> |
| 57 | auto Slide(TIter first, TIter last, TIter position) -> std::pair<TIter, TIter> |
| 58 | { |
| 59 | if (last < position) return { std::rotate(first, last, position), position }; |
| 60 | if (position < first) return { position, std::rotate(position, first, last) }; |
| 61 | return { first, last }; |
| 62 | } |
| 63 | |
| 64 | #endif /* CONTAINER_FUNC_HPP */ |
no outgoing calls
no test coverage detected