📄 map.cpp
字号:
#ifndef MAP_CPP_#define MAP_CPP_#include "Except.h"#include "StartConv.h"template <class KeyType, class ValueType, class Compare>ValueType & map<KeyType,ValueType,Compare>::operator[] ( const KeyType & key ){ kvpair x( key ); iterator itr = theSet.find( x ); if( itr == theSet.end( ) ) itr = theSet.insert( x ).first; return *(ValueType *) &( (*itr).second ); // const_cast is preferred}#include "EndConv.h"#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -