vector_pro_exception¶
Exception thrown by vector_pro¶
When functions in vector_pro are used incorrectly or encounter exceptions, vector_pro_exception will be thrown.
Same as std::exception , you can use vector_pro_exception::what() to obtain further information.
The possible exceptions that may be thrown are described below.
Member functions¶
| name | notes |
|---|---|
| (constructor) | constructor (public member function) |
| (destructor) | destructor (public member function) |
| what | get info (public member function) |
Possible Exceptions¶
"Initial size of vector should be geq 0."
Try to initialize a vector whose size is less than 0.
Only being thrown by the constructor and theoperator=."Out of memory."
Out of mem."Target array can't be null."
When use anulltraditional array to initialize the container.
Only being thrown by the constructor."Re_size val of vector should be geq 0."
Try to resize a vector whose size is less than 0."Out of range."
Try to access a position either when the container is empty or the position itself is out of range."Vector is empty."
Will be thrown byvector_pro::front(),vector_pro::back(),vector_pro::pop()andvector_pro::pop_back()when the container is empty."Number of insert target should be geq 0."
Try to insert (or assign) less than 0 elements into the container."Iterator not of this vector."
Using a wrong iterator to access the current container."Iterator not of same vector."
Will be thrown in functions with the parametersiterator_pro<value_type> fromanditerator_pro<value_type> exclude_to.
The function will first check if the iterators belong to the same container before encountering further issues."Vector_pro doesn't support this operation yet. (Maybe in the near future ?)"
See more invector_pro::data().