Can I code like std::max_element(std::begin(my_deque), std::end(my_deque))
?
I am asking because I know deque is not guaranteed to store continuously, so I want to know if it will behave correctly when using functions involving iterator like std::max_element
?
Thank you very much!