is Associative Arrays good for integer type as key?

Stewart Gordon smjg_1998 at yahoo.com
Fri Nov 17 05:34:10 PST 2006


%u wrote:
> such as
> 
> int[short] hashtable;
> 
> where KeyType = short, and ValueType = int?
> 
> will this work?

Have you tried it?  Does it work?

> and as optimized (memory-wise, and CPU-wise)?

Depends on how you're using it.

Stewart.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:-@ C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS- 
PE- Y? PGP- t- 5? X? R b DI? D G e++++ h-- r-- !y
------END GEEK CODE BLOCK------

My e-mail is valid but not my primary mailbox.  Please keep replies on 
the 'group where everyone may benefit.



More information about the Digitalmars-d-learn mailing list