#include <iostream>
#include <vector>
void dump_vector(std::vector<int>::const_iterator begin_,std::vector<int>::const_iterator end_)
{
for(;begin_!=end_;++begin_)
{
std::cout<<*begin_<<"n";
}
}
void fill_vector(std::vector<int>::iterator begin_,std::vector<int>::size_type count_, int value_)
{
for(;count_>0;--count_,++begin_)
{
*begin_ = value_;
}
}
int main()
{
std::vector<int> v;
v.resize(10);
fill_vector(v.begin(),10,1);
dump_vector(v.begin(),v.end());
return 0;
}