vector-max_size

////////////////////////////////////////
//      2018/04/16 19:40:41
//      vector-max_size
#include <iostream>
#include <vector>

using namespace std;

int main(){
    vector<int> v(10);
    cout << "Size of v = " << v.size() << endl;
    cout << "Max_size of v = " << v.max_size() << endl;
    return 0;
}


/*
OUTPUT:
    Size of v = 10
    Max_size of v = 1073741823
*/
posted @ 2018-04-16 19:50  老耗子  阅读(80)  评论(0编辑  收藏  举报