Boost logo

Boost Users :

Subject: Re: [Boost-users] [multi_index] iterating over keys and "extracting" key extractors
From: Joaquin M Lopez Munoz (joaquin_at_[hidden])
Date: 2015-03-18 15:45:29

Nick Stokes <randomaccessiterator <at>> writes:

> Q1:  Is there a builtin in way in MI to iterate over keys rather
> than elements? I.e. the iterator's value type will be that of the
> key, not the element. 

No, there's none. Some iterator adaption is needed as you mention
> Q2:  Is there a way to obtain the type of key extractors given a
> multi index container?  (it is related to Q1, as this sort of a
> thing could be passed to boost::transform iterator to obtain an
> alternative answer for Q1)

  auto beg=boost::make_transform_iterator(
  è鍽Áä (€€€‰•œ±•¹±Íѐèé½ÍÑÉ•…µ}¥Ñ•É…ѽÈñÍѐèéÍÑÉ¥¹œø¡Íѐè鍽Õаˆ€ˆ¤¤ì())½…Å×µ¸43ÍÁ•è5׎è)Q•±•›͹¥„

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at