I want to create aliases for a few of the Range-V3 functions/functors into my own namespace. For the functors like begin, end, it's just doing auto constexpr begin = ::ranges::begin. However, for a function like copy, I'm not sure how to proceed. I've tried using ::ranges::copy(); and using ::ranges::copy; but neither work.
Any help would be much appreciated! A small example of what I'm doing:
namespace example::ranges
{
auto constexpr begin = ::ranges::begin;
auto constexpr end = ::ranges::end;
auto constexpr size = ::ranges::size;
using ::ranges::copy(); // Doesn't work
}
::ranges::copy? A function, a class, a typedef,... ? Maybe already ausing?namespace example { namespace ranges = ::ranges; }.using ::ranges::copy;didn't work? Really?