typedef typename Allocator::template rebind<Mapped>::other mapped_type_allocator;
This is a templated typedef - it sets mapped_type_allocatoras an alias for the template.
typedef typename Allocator::rebind<Mapped>::other mapped_type_allocator;
This is the typedef type for the type. To compile OK, Mappedyou will need to determine / know.
It is assumed that Allocator::rebind<typename X>::other(as a concept) defines a pattern, not a type.
source
share