You have an interesting question and make me ponder about possibility of an end to SEO.
I believe with constant changes in technology, processes in indexing and analyzing page rank may be further enhanced or fully automated for better search efficiency and productive output. Perhaps a personalized software can be provided someday to companies so that they themselves have a way of understanding their SEO performance with respect to competition and get glimpses of areas of opportunities that can still be explored.
There are also steps taken to encourage companies to take steps to make their websites also mobile friendly as a greater majority of smartphone users are now using their device to search for information.
Some are saying this may be an end to SEO as Google has to make some changes or adjustments, thus, affecting SEO and ranking. In due time, all companies will manage to adopt to the changes.
As far as I am concerned, SEO is a time tested proven online technique to improve page rankings in search engines. It is very hard to rival this widely accepted method as many websites, individuals and companies depend on SEO to improve their search rankings to boost traffic for their site.
I have heard of some groups trying to fully automate systems as a possible replacement to SEO but everything is still experimental and done on a small scale.
Google on the otherhand being the largest and most widely used search engine has been steadfast in improving its systems and operations in providing its users a secure objective productive search engine.
As Google gets more involved in adding extra features and improvements, users enjoy the benefit of enjoying satisfying search experience and chances of companies getting more visitors to their websites. As such, I cannot think of an end in SEO, maybe an evolution.