void SimpleElementMapSerializer<KeyT>::GetItems(V_ValueType& items) { items.resize(m_Data->size()); DataType::iterator itr = m_Data->begin(); DataType::iterator end = m_Data->end(); for ( size_t index=0; itr != end; ++itr, ++index ) { items[index].first = Serializer::Bind( itr->first, m_Instance, m_Field ); items[index].second = &itr->second; } }
void SimpleObjectStlMapData<KeyT>::GetItems(V_ValueType& items) { items.resize(m_Data->size()); DataType::iterator itr = m_Data->begin(); DataType::iterator end = m_Data->end(); for ( size_t index=0; itr != end; ++itr, ++index ) { items[index].first = Data::Bind( const_cast< KeyT& >( itr->first ), m_Instance, m_Field ); items[index].second = &itr->second; } }