⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 18-1.cpp

📁 effective stl 源代码 code
💻 CPP
字号:
//
// Example from ESTL Item 18
//

#include <string>
#include <vector>
#include <iostream>
#include "ESTLUtil.h"

class T {};

int main()
{
	using namespace std;
	using namespace ESTLUtils;

	vector<T> c(10);
	
	T *p = &c[0];					// initialize a T* with the address
									// of whatever operator[] returns


	vector<bool> v;

	bool *pb = &v[0];				// initialize a bool* with the address of
									// what vector<bool>::operator[] returns



	return 0;
}

⌨️ 快捷键说明

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