reverse(a.begin(),a.end())

反转容器

原文地址:https://www.cnblogs.com/yzbpxx/p/11069893.html