This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of NAD status.

### 1396. `regex` should support allocators

Section: 32.7 [re.regex] Status: NAD Submitter: INCITS Opened: 2010-08-25 Last modified: 2020-11-09

Priority: Not Prioritized

View all other issues in [re.regex].

View all issues with NAD status.

Duplicate of: 1451

Discussion:

Addresses US-104, US-141

`std::basic_regex` should have an allocator for all the reasons that a `std::string` does. For example, I can use `boost::interprocess` to put a `string` or `vector` in shared memory, but not a `regex`.

[ Resolution proposed by ballot comment ]

Add allocators to regexes

[ 2010-10-24 Daniel adds: ]

> Accepting n3171 would solve this issue.

[2011-03-22 Madrid]

Close 1396 as NAD Future.

[LEWG Kona 2017]

Recommend Open: Covered in LEWG9, P0269, which is in wording review.

[2020-07-17; status changed to Tentatively NAD in issue processing telecon]

P0269R0 has been superseded by P1294R0. Requested LEWG to confirm which version they forwarded to LWG. In any case, this is a feature request, not a defect, and will be dealt with as a proposal not an issue.

[2020-11-09 Status changed: Tentatively NAD → NAD.]

Rationale:

No consensus for a change at this time

Proposed resolution: