[multi_index] view with less items than in container possible?

The various indexes of the multi_index_container help to access items in a container differently. Is it also possible to create an index somehow with access to less items in the container? If there is for example a container with employees and I often need to iterate over female employees only is there a way to create an index for this (there could be a bool in the employee class to indicate who is female)? Boris

Hi Boris, I think this might help: http://www.boost.org/libs/multi_index/doc/tutorial.html#range With Kind Regards, Ovanes Markarian On Thu, February 22, 2007 14:03, Boris wrote:
The various indexes of the multi_index_container help to access items in a container differently. Is it also possible to create an index somehow with access to less items in the container? If there is for example a container with employees and I often need to iterate over female employees only is there a way to create an index for this (there could be a bool in the employee class to indicate who is female)?
Boris
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Boris
-
Ovanes Markarian