Returns an ideque with the front/back element of ideque removed. It is an error for ideque to be empty.