Пример #1
0
 void
 construct_component_index(IndexContainer& index, HeaderContainer& header)
 {
   build_components_header(index.begin(), 
                           std::back_inserter(header),
                           index.end() - index.begin());
   
   link_components(index.begin(), header.begin(),
                   index.end() - index.begin(), 
                   header.end() - header.begin());
 }
Пример #2
0
 void
 construct_component_index(IndexContainer& index, HeaderContainer& header)
 {
   typedef typename IndexContainer::value_type Integer;
   build_components_header(index.begin(), 
                           std::back_inserter(header),
                           Integer(index.end() - index.begin()));
   
   link_components(index.begin(), header.begin(),
                   Integer(index.end() - index.begin()), 
                   Integer(header.end() - header.begin()));
 }