Boost logo

Boost Users :

Subject: Re: [Boost-users] Using unordered_set or unordered_map to hold small array(s) of ints
From: B Hart (bhartsb_at_[hidden])
Date: 2010-08-20 18:04:18


Can you provide me a simple example?

On Fri, Aug 20, 2010 at 8:34 AM, Steven Watanabe <watanabesj_at_[hidden]>wrote:

> AMDG
>
>
> B Hart wrote:
>
>> Can someone please provide an example of how to best use unordered_map/set
>> to store/lookup many small arrays of integers. e.g. unsigned int I[5] =
>> {1000,3344455,12455222,8832232};
>> I'm guessing that there is no facility for using raw C++ arrays, and that
>> one must wrap them in a struct.
>>
>>
>
> If the arrays are fixed size, you can use boost::array.
>
> In Christ,
> Steven Watanabe
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net