TypedefTypenameTest2
来源:互联网 发布:获取url的ip和端口 编辑:程序博客网 时间:2024/06/05 16:05
#include <iostream>#include <fstream>#include <string>#include <set>#include <map>#include <vector>#include <list>#include <stack>#include <queue>#include <limits>#include <iterator>#include <iomanip>#include <algorithm>#include <functional>using namespace std;template<typename T>class MapTest{public:typedef map<T,int> MapPair;MapPair m_MapPair;//Iterator and Const_Iteratorpublic:typedef MapPair::const_iterator const_iterator;typedef MapPair::iterator iterator;const_iterator begin() const{return m_MapPair.begin();}iterator begin() {return m_MapPair.begin();} const_iterator end() const{return m_MapPair.end();}iterator end(){return m_MapPair.end();}};int main(){cout << "hello " <<endl;return 0;}
0 0
- TypedefTypenameTest2
- Android 编程下 Touch 事件的分发和消费机制
- leetcode之Number of 1 Bit
- Windows下搭建Android开发环境
- 关于Android代码混淆包含第三方jar包
- RPC 百度百科
- TypedefTypenameTest2
- 图解MySQL删除再安装教程
- 1503140001-蓝桥杯-历届试题 分糖果
- mysql your password has expired
- Android NDK 入门之开发环境搭建
- Android 那些你所不知道的Bitmap对象详解
- IO-01. 表格输出
- Python 中的进程、线程、协程、同步、异步、回调
- c++稀疏表示框架搭建的过程中遇到的错误