#include #include using namespace std;struct W{ W(int&, int&) {}};struct X{ X(const int&, int&) {}};struct Y{ Y(int&, const int&) {}};struct Z{ Z(const int&, const int&) {}};template T* factory(A1&& a1, A2&& a2){ return new T(std::forward (a1), std::forward (a2));}int&& haha(int&& a){ cout<< "before haha, a is " << a <
(a);}int _tmain(int argc, _TCHAR* argv[]){ char s[]="Hello World!"; int Uppercase = 0; for_each(s,s+sizeof(s),[&](char c) { if(isupper(c)) Uppercase++; }); cout<
<< " uppercase letters in: " << s << endl; /* int my_array[]={1,2,3,4,5,6}; for (int& x : my_array) { cout << x < (a, b); X* px = factory (2, b); Y* py = factory (a, 2); Z* pz = factory (2, 2); delete pw; delete px; delete py; delete pz; cout << "first a is :" << a <