in include/range/v3/algorithm/unique_copy.hpp [98:115]
static tagged_pair<tag::in(I), tag::out(O)> impl(I begin, S end, O out, C pred_, P proj_,
concepts::InputIterator*, std::true_type)
{
auto &&pred = as_function(pred_);
auto &&proj = as_function(proj_);
if(begin != end)
{
*out = *begin;
while(++begin != end)
{
auto &&x = *begin;
if(!pred(proj(*out), proj(x)))
*++out = (decltype(x) &&) x;
}
++out;
}
return {begin, out};
}