Title
reference_type should not have been removed from the allocator requirements
Status
dup
Section
[allocator.requirements]
Submitter
INCITS

Created on 2010-08-25.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-24.22:33:31

Proposed resolution:

In [allocator.requirements] Table 42 - Allocotor Requirements, Add a row (after value_type) with columns:

Expression: X::reference_type
Return type: T&
Assertion/note...: (empty)
Default: T&

[allocator.traits]:

namespace std {
  template <class Alloc> struct allocator_traits {
    typedef Alloc allocator_type;
    
    typedef typename Alloc::value_type value_type;

    typedef see below   pointer;
    typedef see below   const_pointer;
    typedef see below   void_pointer;
    typedef see below   const_void_pointer;
    typedef value_type& reference_type;

Add reference_type to allocator_traits template, defaulted to value_type&.

Date: 2010-10-25.13:05:58

Duplicate: 1318

Addresses US-87

reference_type should not have been removed from the allocator requirements. Even if it is always the same as value_type&, it is an important customization point for extensions and future features.

History
Date User Action Args
2010-10-25 13:05:58adminsetstatus: open -> dup
2010-10-24 03:04:13adminsetmessages: + msg4903
2010-08-25 00:00:00admincreate