#include<iostream>
#include<vector>
using namespace std;
template<typename C>
bool lastGreaterThanFirst(const C& container)
{
if(container.empty())
return false;
typename C::const_iterator begin = container.begin();//= 赋值
typename C::const_iterator end(container.end());//() 赋值
return *--end>*begin;
}
int main()
{
vector<int> vec;
for(int i=0;i<10;++i)
vec.push_back(i);
cout<<lastGreaterThanFirst(vec);
}