未插入到地图中

Insertion into map not happening

本文关键字:地图 插入      更新时间:2023-10-16

我们在Visual Studio应用程序中使用了map。在调试模式下,插入正常。但在释放模式下插入映射时,当控件传递以下代码行时,会引发以下异常"exe:0xC0000005:访问冲突读取位置0xcdcdcdd1时0x201a1cfd未处理的异常"。

  "iterator _Where = this->lower_bound(_Keyval);"
mapped_type& operator[](const key_type& _Keyval)
    {   // find element matching _Keyval or insert with default mapped
    iterator _Where = this->lower_bound(_Keyval);
    if (_Where == this->end()
        || this->comp(_Keyval, this->_Key(_Where._Mynode())))
        _Where = this->insert(_Where,
            value_type(_Keyval, mapped_type()));
    return ((*_Where).second);
    }

这段代码位于外部依赖项内的映射文件中。

请任何人提出解决方案..提前谢谢。

可能 My_DestPipeLines不是你想要的。向我们展示它的声明。