initial check in

This commit is contained in:
2012-12-06 21:43:03 +04:00
commit 4bc273824d
179 changed files with 29415 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
// testOutputIterator.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <vector>
#include <list>
int _tmain(int argc, _TCHAR* argv[])
{
#if 0
std::vector<int> v;
std::vector<int>::iterator ot = v.begin();
*++ot = 1;
*++ot = 2;
*++ot = 3;
*++ot = 4;
#endif
std::list<int> l;
l.push_back( 1 );
l.push_back( 2 );
// l.splice( l.begin(), l, l.begin() );
std::cout << &(*l.begin()) << " " << &(*++l.begin()) << " " << *l.begin() << " " << *++l.begin() << std::endl;
std::swap( l.begin(), ++l.begin() );
std::cout << &(*l.begin()) << " " << &(*++l.begin()) << " " << *l.begin() << " " << *++l.begin() << std::endl;
return 0;
}