Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Extend thrust::detail::allocator_traits to allow access to an allocator's system #212

Closed
jaredhoberock opened this issue Aug 9, 2012 · 1 comment
Labels
type: enhancement New feature or request.

Comments

@jaredhoberock
Copy link
Contributor

Consider adding allocator_traits<Alloc>::system() which would simply return a default-constructed iterator_system<Ptr>::type.

Allocators with a system reference inside could return a reference to it.

This would help localize the instances of default-constructed systems.

@jaredhoberock
Copy link
Contributor Author

This trait should check the allocator for the member function system(), and use that if it exists instead of having to specialize for each different allocator which might want to include this function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant