Modify

Opened 15 years ago

Closed 9 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.

Attachments (0)

Change History (2)

comment:1 Changed 13 years ago by elfring

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 Changed 9 years ago by Daniel James

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain jsiek.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.