Standard allocators can optionally hints as default parameters https://en.cppreference.com/w/cpp/memory/allocator/allocate
T* allocate( std::size_t n, const void * hint);
Leaving aside that this is formally deprecated in C++20 (which apparently doesn't mean that an allocator cannot have the hint argument):
Do you know of good uses of the hint
in standard or non-standard allocator implementations in existing code or theoretical code? Or is it a plain historical relic?
I am trying to understand if the current hint can help with allocating when you have more than one device (e.g. gpu).
Note 1:
I am not asking how to allocate memory in cpu or gpus, I am trying to see good or proven code that used this hint
parameter internally, presumably efficiency and for particular types of memory.
Even if it is some exotic system.
Note 2: I am not asking how/if/what to pass as argument of hint (i.e. "just pass the current pointer of your container"), like in the linked question. I am asking from the point of view of someone implementing a custom allocator.