map.cpp

来自「Data Abstraction & Problem Solving with 」· C++ 代码 · 共 15 行

CPP
15
字号
template <class Key, class T, class Compare = less<Key>>class map{public:  explicit map(const Compare& cmp = Compare());  // Default constructor  // Precondition: None.  // Postcondition: The map object is initialized to be empty.  // The default comparison operator is <.   // A comparison function object may be supplied.    template <class InputIter> 			       map(InputIter first, InputIter last,       const Compare& comp = Compare());	                                        // Constructor: map is initialized with length last 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?