save before closing pc

This commit is contained in:
hugogogo
2022-06-04 10:57:57 +02:00
parent 556807669e
commit a4550a9bb9
3 changed files with 36 additions and 31 deletions

View File

@@ -174,6 +174,7 @@ VT_TPL typename VT::reference VT::
VT_TPL template <class InputIterator> void VT::
assign( InputIterator first, InputIterator last)
{
std::cout << "inside assign(first, last)";
InputIterator tmp = first;
int range;
@@ -193,6 +194,7 @@ VT_TPL template <class InputIterator> void VT::
VT_TPL void VT::
assign( size_type n, const T & val )
{
std::cout << "inside assign(n, val)";
if (n > _allocator.max_size())
throw std::length_error("assign: n > max_size");