|
Boost Users : |
Subject: Re: [Boost-users] multi_index:iterator_to complexity
From: Joaquin M Lopez Munoz (joaquin_at_[hidden])
Date: 2015-03-09 09:37:47
Joaquin M Lopez Munoz <joaquin <at> tid.es> writes:
>
> Matwey V. Kornilov <matwey.kornilov <at> gmail.com> writes:
>
> > 09.03.2015 10:02, Joaquin M Lopez Munoz пиÑеÑ:
> > >
> > > iterator_to does not do any kind of search based on x, but takes a
> > > reference to an element of the container and returns an iterator to
> > > it (roughly speaking, converts an element pointer to a node pointer).
> > > [...]
> >
> > As far as I understand, there should be some pointer magic, like the
> > following
> >
> > struct node {
> > T obj;
> > ... // Rest
> > };
> >
> > so given x, (node*)&x will point to the struct enveloping the object and
> > should provide access to index-specific data to allow iterator
> > incrementation and dereferencing. What ki½
¥Ñ¥½¹
°
Ñ¥ÌÍѽÉ(øø¥¸¹½ü(ø(ø9½¹l¸¸¹t()$Ñ¡¥¹¬$µ¥ÍÕ¹ÉÍѽ½å½ÕÈÅÕÍÑ¥½¸¸=½ÕÉ͹½ÌÍѽÉ
¥Ñ¥½¹
°)
ѽѡÈÑ¡
¸Ñ¡Ù
±Õ¥Ñͱ¸Q¡
ÑÁ¹Ì½¸Ñ¡¥¹¥Ìµ
¥¹)ÕÀå½ÕȽ¹Ñ
¥¹È¸Í¡½ÉÐáÁ±
¹
Ñ¥½¸½¸Ñ¡¥Ì¥Ì¥Ù¸
Ðè()¡ÑÑÀè¼½ÍÑ
½Ùɱ½Ü¹½´½¼ÐÈÀàÌÐä¼ÈÄÌÄÄÐ())½
Å×µ¸43ÍÁè5׎è)Q±Í¹¥
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