
| Key: |
STDCXX-995
|
| Type: |
Bug
|
| Status: |
Open
|
| Priority: |
Minor
|
| Assignee: |
Unassigned
|
| Reporter: |
Martin Sebor
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Time Tracking:
|
|
Original Estimate:
|
2h
|
|
|
Remaining Estimate:
|
2h
|
|
|
Time Spent:
|
Not Specified
|
|
|
|
| Patch Info: |
Patch Available
|
| Severity: |
Incorrect Behavior
|
-------- Original Message --------
Subject: Re: Controlling allocation policy of STL set.
Date: Thu, 17 Jul 2008 17:18:17 -0700 (PDT)
From: Dennis Handly <dhandly AT cup DOT hp DOT com>
To: sebor AT roguewave DOT com
CC: boris.gubenko AT hp DOT com, dhandly AT cup DOT hp DOT com, premanand.rao AT hp DOT com
We had this question from a user recently. I was able to reverse engineer
how to do this with map/set.
Is this level of difficulty known?
Here is a link where we mention the info about __rw_new_capacity:
http://docs.hp.com/en/10946/libs.htm#container_alloc
I would be nice if we could just use the private typedef
std::map<K,V>::__rep_type.
Then we could just use:
Do you see any issues with making __rep_type public?
(Your Apache code still has it private but as _C_repT.)
===========================================================================
Do you know why the following code fragment does not work for me?
i.e it controls the vector's allocation policy as I expect, but not the
set's. I can believe there is some stupid mistake in there, but I have been
staring at it for a while now...
===========================================================================
>From: Dennis Handly <dhandly AT cup DOT hp DOT com>
>Do you know why the following code fragment does not work for me?
Storage isn't allocated for the set but by the __rbtree.
>I can believe there is some stupid mistake in there
It isn't easy, you have to find the __rw_new_capacity call.
|
|
Description
|
-------- Original Message --------
Subject: Re: Controlling allocation policy of STL set.
Date: Thu, 17 Jul 2008 17:18:17 -0700 (PDT)
From: Dennis Handly <dhandly AT cup DOT hp DOT com>
To: sebor AT roguewave DOT com
CC: boris.gubenko AT hp DOT com, dhandly AT cup DOT hp DOT com, premanand.rao AT hp DOT com
We had this question from a user recently. I was able to reverse engineer
how to do this with map/set.
Is this level of difficulty known?
Here is a link where we mention the info about __rw_new_capacity:
http://docs.hp.com/en/10946/libs.htm#container_alloc
I would be nice if we could just use the private typedef
std::map<K,V>::__rep_type.
Then we could just use:
Do you see any issues with making __rep_type public?
(Your Apache code still has it private but as _C_repT.)
===========================================================================
Do you know why the following code fragment does not work for me?
i.e it controls the vector's allocation policy as I expect, but not the
set's. I can believe there is some stupid mistake in there, but I have been
staring at it for a while now...
===========================================================================
>From: Dennis Handly <dhandly AT cup DOT hp DOT com>
>Do you know why the following code fragment does not work for me?
Storage isn't allocated for the set but by the __rbtree.
>I can believe there is some stupid mistake in there
It isn't easy, you have to find the __rw_new_capacity call.
|
Show » |
made changes - 04/Dec/08 03:51 PM
| Field |
Original Value |
New Value |
|
Attachment
|
|
stdcxx-995.patch
[ 12395291
]
|
made changes - 04/Dec/08 03:53 PM
|
Patch Info
|
|
[Patch Available]
|
|
The proposed patch is attached.