|
Boost Users : |
Subject: Re: [Boost-users] Boost.MultiIndex. Using several keys together.
From: Jason Roehm (jasonr_at_[hidden])
Date: 2014-02-04 16:00:44
On 02/04/2014 03:36 PM, syvyi wrote:
> Hello,
>
> there's a structure
> struct person
> {
> std::string name;
> std::string surname;
> int birth_year;
> std::string craft;
> };
>
> How to create such a multiindex container that dumping could performed using
> an index as name, surname and year triple alltogether?
Sounds like you might be interested in MultiIndex's composite key feature:
Jason
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