$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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