Boost logo

Boost Users :

Subject: Re: [Boost-users] boost container help
From: Michael (mwpowellhtx_at_[hidden])
Date: 2015-05-06 05:47:53


On May 6, 2015 5:11:51 AM EDT, Uthpal Urubail <uthpal.urubail_at_[hidden]> wrote:
>Experts,
>I am looking for help on a container where I could group the objects
>having similar properties
>Ex:
>struct phyProp
>{
> unsigned int color;
> double height;
> double weight;
> std::string location;
>};
>
>Can I use boost for grouping the objects having same property? [With
>tolerance?]

Not sure I quite understand the question, but have a look at cpplinq to_map.

http://github.com/mrange/cpplinq/

Your tolerance function should be able to serve as the key, with instances (or whatever) as predicated values.

Very similar in nature as with .NET LINQ, works great, and you can specify lambdas, which I find very helpful.

>Any help is highly appreciated.

HTH

>Regards,
>UJ
>_______________________________________________
>Boost-users mailing list
>Boost-users_at_[hidden]
>http://lists.boost.org/mailman/listinfo.cgi/boost-users

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

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