Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3867

Show
Ignore:
Timestamp:
08/09/08 17:13:12 (4 months ago)
Author:
kris
Message:

fixes #1232 :: opIn_r for SortedMap?

thanks to keinfarbton

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/util/container/SortedMap.d

    r3713 r3867  
    5151        bool opIndexAssign (V element, K key) 
    5252        V    opIndex (K key) 
    53         V*   opIn (K key) 
     53        V*   opIn_r (K key) 
    5454 
    5555        uint size () 
     
    315315        ***********************************************************************/ 
    316316 
    317         final V* opIn (K key) 
     317        final V* opIn_r (K key) 
    318318        { 
    319319                if (count) 
     
    513513        final V opIndex (K key) 
    514514        { 
    515                 auto p = opIn (key); 
     515                auto p = opIn_r (key); 
    516516                if (p) 
    517517                    return *p; 
     
    922922{ 
    923923        import tango.io.Stdout; 
    924         import tango.math.Random; 
    925924        import tango.core.Thread; 
    926925        import tango.time.StopWatch; 
     926        import tango.math.random.Kiss; 
    927927 
    928928        void main() 
     
    980980                auto keys = new int[count]; 
    981981                foreach (ref vv; keys) 
    982                          vv = Random.shared.next(int.max); 
     982                         vv = Kiss.shared.toInt(int.max); 
    983983 
    984984                // benchmark adding