When trying to access a non-existent position of a LIST, LDPL should throw a runtime error (by checking the size of the LIST and the position you are trying to access). At the moment it throws a C++ std::bad_alloc and that is something super not very nice for the user.
When trying to access a non-existent position of a LIST, LDPL should throw a runtime error (by checking the size of the LIST and the position you are trying to access). At the moment it throws a C++ std::bad_alloc and that is something super not very nice for the user.