亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? d_map.h

?? 這是數據結構和算法的國外經典書籍.清華大學出版社出版的<數據結構C++語言描述-應用模板庫STL>陳君 譯 英文名稱是Data Structures with C++ Using STL.
?? H
字號:
#ifndef MINIMAP_CLASS
#define MINIMAP_CLASS

#include "d_pair.h"		// miniPair class
#include "d_stree.h"		// stree class

// implements a map containing key/value pairs.
// a map does not contain multiple copies of the same item.
// types T and Key must have a default constructor
template <typename Key, typename T>
class miniMap
{
	public:

		typedef stree<miniPair<const Key,T> >::iterator iterator;
		typedef stree<miniPair<const Key,T> >::const_iterator const_iterator;
			// miniMap iterators are simply stree iterators. an iterator cannot
			// change the key in a tree node, since the key attribute
			// of a miniPair object in the tree is const

		typedef miniPair<const Key, T> value_type;
			// for programmer convenience

		miniMap();
			// default constructor. create an empty map

		miniMap(value_type *first, value_type *last);
			// build a map whose key/value pairs are determined by pointer
			// values [first, last)

		bool empty() const;
			// is the map empty?

		int size() const;
			// return the number of elements in the map

		iterator find (const Key& key);
			// search for item in the map with the given key
			// and return an iterator pointing at it, or end()
			// if it is not found

		const_iterator find (const Key& key) const;
			// constant version of find()

		T& operator[] (const Key& key);
			// if no value is associated with key, create a new
			// map entry with the default value T() and return a
			// reference to the default value; otherwise,
			// return a reference to the value already associated
			// with the key

		int count(const Key& key) const;
			// returns 1 if an element with the key is in the map
			// and 0 otherwise

		miniPair<iterator,bool> insert(const value_type& kvpair);
			// if the map does not contain a key/value pair whose
			// key matches that of kvpair, insert a coy of kvpair
			// and return a miniPair object whose first element is an
			// iterator positioned at the new key/value pair and whose second
			// element is true. if the map already contains a key/value
			// pair whose key matches that of kvpair, return a miniPair
			// object whose first element is an iterator positioned at the
			// existing key/value pair and whose second element is false

		int erase(const Key& key);
			// erase the key/value pair with the specified key
			// from the map and return the number
			// of items erased (1 or 0)

		void erase(iterator pos);
			// erase the map key/value pair pointed by to pos

		void erase(iterator first, iterator last);
			// erase the key/value pairs in the range [first, last)

		iterator begin();
			// return an iterator pointing at the first member
			// in the map
		const_iterator begin() const;
			// constant version of begin()

		iterator end();
			// return an iterator pointing just past the last
			// member in the map
		const_iterator end() const;
			// constant version of end()

	private:
		// miniMap implemented using an stree of key-value pairs
		stree<miniPair<const Key,T> > t;
};

template <typename Key, typename T>
miniMap<Key,T>::miniMap()
{}

template <typename Key, typename T>
miniMap<Key,T>::miniMap(value_type *first, value_type *last):
		t(first, last)
{}

template <typename Key, typename T>
bool miniMap<Key,T>::empty() const
{
	return t.empty();
}

template <typename Key, typename T>
int miniMap<Key,T>::size() const
{
	return t.size();
}

template <typename Key, typename T>
miniMap<Key,T>::iterator miniMap<Key,T>::find (const Key& key)
{
	// pass a miniPair to stree find() that contains key as its
	// first member and T() as its second
	return t.find(value_type(key, T()));
}

template <typename Key, typename T>
miniMap<Key,T>::const_iterator miniMap<Key,T>::find (const Key& key) const
{
	// pass a miniPair to stree find() that contains key as its
	// first member and T() as its second
	return t.find(value_type(key, T()));
}

template <typename Key, typename T>
T& miniMap<Key,T>::operator[] (const Key& key)
{
	// build a miniPair object consisting of key
	// and the default value T()
	value_type tmp(key, T());
	// will point to a pair in the map
	iterator iter;

	// try to insert tmp into the map. the iterator
	// component of the pair returned by t.insert()
	// points at either the newly created key/value
	// pair or a pair already in the map. return a
	// reference to the value in the pair
	iter = t.insert(tmp).first;

	return (*iter).second;
}

template <typename Key, typename T>
int miniMap<Key,T>::count(const Key& key) const
{
	// pass a miniPair to stree count() that contains key as its
	// first member and T() as its second
	return t.count(value_type(key, T()));
}

template <typename Key, typename T>
miniPair<miniMap<Key,T>::iterator,bool>
miniMap<Key,T>::insert(const miniMap<Key,T>::value_type& kvpair)
{
	// t.insert() returns a pair<iterator,bool> object, not a
	// miniPair<iterator,bool> object
	pair<iterator, bool> p = t.insert(kvpair);

	// build and return a miniPair<iterator,bool> object
	return miniPair<iterator, bool>(p.first, p.second);
}

template <typename Key, typename T>
int miniMap<Key,T>::erase(const Key& key)
{
	// pass a miniPair to stree erase() that contains key as its
	// first member and T() as its second
	return t.erase(value_type(key, T()));
}

template <typename Key, typename T>
void miniMap<Key,T>::erase(iterator pos)
{
	t.erase(pos);
}

template <typename Key, typename T>
void miniMap<Key,T>::erase(iterator first, iterator last)
{
	t.erase(first,last);
}

template <typename Key, typename T>
miniMap<Key,T>::iterator miniMap<Key,T>::begin()
{
	return t.begin();
}

template <typename Key, typename T>
miniMap<Key,T>::iterator miniMap<Key,T>::end()
{
	return t.end();
}

template <typename Key, typename T>
miniMap<Key,T>::const_iterator miniMap<Key,T>::begin() const
{
	return t.begin();
}

template <typename Key, typename T>
miniMap<Key,T>::const_iterator miniMap<Key,T>::end() const
{
	return t.end();
}

#endif	// MINIMAP_CLASS

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
另类小说图片综合网| 一区二区在线观看av| 欧美唯美清纯偷拍| 99精品热视频| 99久久综合国产精品| 成人国产精品免费观看| 成人性生交大片免费看视频在线 | 国产寡妇亲子伦一区二区| 日日摸夜夜添夜夜添精品视频| 亚洲免费三区一区二区| 亚洲男人天堂av| 玉米视频成人免费看| 亚洲综合色成人| 喷白浆一区二区| 国产麻豆精品久久一二三| 激情欧美一区二区三区在线观看| 国产曰批免费观看久久久| 高清国产一区二区三区| 成人av高清在线| 91福利小视频| 欧美一区二区三区不卡| 日韩情涩欧美日韩视频| 国产三级三级三级精品8ⅰ区| 国产亚洲欧美在线| 亚洲激情成人在线| 日韩国产欧美三级| 国产福利一区二区三区视频在线| 9久草视频在线视频精品| 欧美午夜电影网| 精品国产成人在线影院| 国产精品久久久久婷婷| 亚洲国产一二三| 狠狠色2019综合网| 一本色道久久综合精品竹菊| 在线成人av网站| 26uuu成人网一区二区三区| 国产精品对白交换视频| 午夜日韩在线电影| 国产99久久久国产精品潘金 | 国产精品一区在线观看乱码| 色网站国产精品| 亚洲精品在线观| 亚洲午夜日本在线观看| 国产乱妇无码大片在线观看| 欧美视频一区二区三区在线观看| 91精品国产入口| 亚洲欧美日韩久久| 国产福利一区二区三区视频| 欧美日韩国产片| 中文字幕中文字幕一区| 久久精品国产99国产精品| 99精品1区2区| 国产色91在线| 日本美女一区二区三区| 色婷婷综合中文久久一本| 欧美成人激情免费网| 亚洲一二三四在线| 成人av资源下载| 2023国产精品视频| 久久精品噜噜噜成人av农村| 欧美伊人久久久久久久久影院| 国产精品另类一区| 国产美女娇喘av呻吟久久| 欧美一区二区三区免费大片| 一区二区三区丝袜| a亚洲天堂av| 国产精品高潮呻吟久久| 国产成人精品亚洲午夜麻豆| 日韩午夜在线观看视频| 亚洲电影中文字幕在线观看| 色视频欧美一区二区三区| 国产精品亲子乱子伦xxxx裸| 国产精品亚洲午夜一区二区三区| 日韩欧美国产综合| 秋霞午夜鲁丝一区二区老狼| 欧美日本一区二区三区| 亚洲福利视频一区| 精品视频一区三区九区| 亚洲精品视频在线看| 99久久精品情趣| 亚洲欧美日韩国产另类专区| 成人精品小蝌蚪| 亚洲欧洲制服丝袜| 在线视频综合导航| 亚洲成人av免费| 欧美日韩精品一区二区三区蜜桃| 午夜精品视频在线观看| 欧美日韩不卡一区二区| 偷窥国产亚洲免费视频| 91精品免费在线观看| 免费人成黄页网站在线一区二区| 日韩午夜av电影| 久久99久久精品| 中文字幕电影一区| 日本韩国欧美在线| 日本v片在线高清不卡在线观看| 精品久久久久久久久久久院品网| 国产激情偷乱视频一区二区三区| 欧美经典一区二区| 波多野结衣一区二区三区| 亚洲乱码日产精品bd| 制服视频三区第一页精品| 蜜桃av噜噜一区| 国产精品系列在线| 欧美三区在线视频| 国产高清久久久| 亚洲一区免费在线观看| 精品欧美一区二区在线观看| 成人午夜私人影院| 午夜婷婷国产麻豆精品| 精品国产制服丝袜高跟| 99re6这里只有精品视频在线观看| 亚洲日本va在线观看| 在线播放中文字幕一区| 国产成人免费在线观看| 一区二区视频在线| 精品蜜桃在线看| 色婷婷一区二区三区四区| 免费观看久久久4p| 亚洲欧美日本韩国| 日韩午夜在线观看| 色婷婷亚洲一区二区三区| 激情综合五月天| 亚洲一区免费在线观看| 国产精品久线观看视频| 日韩视频国产视频| 在线观看区一区二| 高清久久久久久| 久久99热狠狠色一区二区| 一区二区三区在线视频播放| 国产日韩亚洲欧美综合| 欧美另类一区二区三区| 91在线视频免费观看| 国产麻豆精品95视频| 日韩成人伦理电影在线观看| 亚洲欧美激情在线| 久久久久高清精品| 欧美一卡二卡三卡四卡| 精品视频免费看| 91亚洲精品乱码久久久久久蜜桃| 国产成人一区在线| 国产永久精品大片wwwapp| 日韩在线一二三区| 亚洲亚洲人成综合网络| 伊人开心综合网| 亚洲人妖av一区二区| 欧美国产日韩亚洲一区| 亚洲精品在线免费观看视频| 日韩午夜在线观看| 欧美一区二区在线视频| 欧美精品777| 欧美高清视频在线高清观看mv色露露十八 | 欧美中文一区二区三区| 91免费视频网址| eeuss国产一区二区三区| 成人免费看的视频| 成人久久18免费网站麻豆| 国产**成人网毛片九色| 成人在线视频一区| 不卡区在线中文字幕| 岛国精品在线观看| 波多野结衣欧美| 色网综合在线观看| 欧美三级电影网| 日韩一区二区精品在线观看| 日韩免费在线观看| 国产欧美精品一区二区色综合朱莉| 精品国产99国产精品| 久久久天堂av| 中文字幕在线观看一区| 亚洲综合免费观看高清在线观看| 一区二区三区在线免费视频 | 精品国产乱码久久久久久浪潮| 日韩精品资源二区在线| 久久美女高清视频| 国产精品麻豆99久久久久久| **性色生活片久久毛片| 污片在线观看一区二区| 国产激情一区二区三区四区 | 久久超碰97中文字幕| 国产91丝袜在线18| 色婷婷久久99综合精品jk白丝| 91久久精品网| 日韩精品在线一区二区| 久久精品亚洲一区二区三区浴池| 国产精品另类一区| 日韩av一二三| 成人黄色在线视频| 欧美久久久影院| 亚洲国产成人午夜在线一区| 午夜日韩在线观看| 国产91在线看| 91精品婷婷国产综合久久| 国产精品欧美一区喷水| 日韩综合在线视频| 97久久精品人人做人人爽| 日韩女优av电影在线观看| 一区二区免费视频| 国产suv精品一区二区三区| 欧美人牲a欧美精品|