BIMHome v1.0.0
BIMHome接口文档说明

◆ insert() [1/2]

template<class KeyType , class MappedType , class Hash = std::hash<KeyType>, class Pred = std::equal_to<KeyType>>
std::pair< iterator, bool > insert ( const EntryType new_entry)

在 map 中插入一个新 entry

如果键已存在,则更新其值;否则,插入新 entry。

参数
[in]new_entry待添加的 entry
返回
包含迭代器和布尔值的对,迭代器指向插入的 entry,布尔值表示是否插入成功