3 ms·
I think C# generics also work this way, at least to an extent. For example, a single instance of generic hashmap code can store any value as long as it's one wo
by twic 6y ago
I think C# generics also work this way, at least to an extent. For example, a single instance of generic hashmap code can store any value as long as it's one word in size, which the most common sizes of integer, floating-point number, and pointer are.
EDIT: as many comments on that post say, sorry!