// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CC_BASE_CONTAINER_UTIL_H_ #define CC_BASE_CONTAINER_UTIL_H_ #include <utility> namespace cc { // Removes the front element from the container and returns it. template <typename Container> typename Container::value_type PopFront(Container* container) { … } // Removes the back element from the container and returns it. template <typename Container> typename Container::value_type PopBack(Container* container) { … } } // namespace cc #endif // CC_BASE_CONTAINER_UTIL_H_