Opened 20 years ago

Closed 13 years ago

#100 closed Feature Requests (wontfix)

more use of the concept "allocator"

Reported by: elfring Owned by: jsiek
Milestone: Component: concept_check
Version: None Severity: Showstopper
Keywords: Cc:

Description

I think that the concept "allocator" can be used not only for the smart_ptr templates 
(https://sourceforge.net/tracker/index.php?func=detail&aid=449787&group_id=7586&atid=357586). It 
should be used on every place where a template parameter can accept a pair of functions/methods that 
perform a resource allocation and release.
Other examples for this:
 - create / destroy
 - fopen / fclose
 - login / logout
 - lock / unlock  (http://www.boost.org/libs/thread/doc/mutex_concept.html)

It would be nice to have some more function objects that are provided by the class library.

Change History (2)

comment:1 by elfring, 18 years ago

Logged In: YES 
user_id=572001

Would you like to reuse anything from the discussion "RAII for value objects"?
http://groups.google.de/groups?threadm=40ed1d8f.0411121340.49aa7ebc@posting.google.com

comment:2 by Daniel James, 13 years ago

Resolution: Nonewontfix
Severity: Showstopper
Status: assignedclosed

That link doesn't seem to work.

There might be some value in making this proposal for individual libraries. But as a general request this is not going to be acted on.

Note: See TracTickets for help on using tickets.