OSDN Git Service

2009-12-24 Paolo Carlini <paolo.carlini@oracle.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / include / bits / stl_deque.h
index 99105eb..647d547 100644 (file)
@@ -370,6 +370,23 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
                       _Deque_iterator<_Tp, const _Tp&, const _Tp*>(__last),
                       __result); }
 
+  template<typename _Tp>
+    _Deque_iterator<_Tp, _Tp&, _Tp*>
+    copy_backward(_Deque_iterator<_Tp, const _Tp&, const _Tp*>,
+                 _Deque_iterator<_Tp, const _Tp&, const _Tp*>,
+                 _Deque_iterator<_Tp, _Tp&, _Tp*>);
+
+  template<typename _Tp>
+    inline _Deque_iterator<_Tp, _Tp&, _Tp*>
+    copy_backward(_Deque_iterator<_Tp, _Tp&, _Tp*> __first,
+                 _Deque_iterator<_Tp, _Tp&, _Tp*> __last,
+                 _Deque_iterator<_Tp, _Tp&, _Tp*> __result)
+    { return std::copy_backward(_Deque_iterator<_Tp,
+                               const _Tp&, const _Tp*>(__first),
+                               _Deque_iterator<_Tp,
+                               const _Tp&, const _Tp*>(__last),
+                               __result); }
+
 #ifdef __GXX_EXPERIMENTAL_CXX0X__
   template<typename _Tp>
     _Deque_iterator<_Tp, _Tp&, _Tp*>
@@ -385,6 +402,23 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
     { return std::move(_Deque_iterator<_Tp, const _Tp&, const _Tp*>(__first),
                       _Deque_iterator<_Tp, const _Tp&, const _Tp*>(__last),
                       __result); }
+
+  template<typename _Tp>
+    _Deque_iterator<_Tp, _Tp&, _Tp*>
+    move_backward(_Deque_iterator<_Tp, const _Tp&, const _Tp*>,
+                 _Deque_iterator<_Tp, const _Tp&, const _Tp*>,
+                 _Deque_iterator<_Tp, _Tp&, _Tp*>);
+
+  template<typename _Tp>
+    inline _Deque_iterator<_Tp, _Tp&, _Tp*>
+    move_backward(_Deque_iterator<_Tp, _Tp&, _Tp*> __first,
+                 _Deque_iterator<_Tp, _Tp&, _Tp*> __last,
+                 _Deque_iterator<_Tp, _Tp&, _Tp*> __result)
+    { return std::move_backward(_Deque_iterator<_Tp,
+                               const _Tp&, const _Tp*>(__first),
+                               _Deque_iterator<_Tp,
+                               const _Tp&, const _Tp*>(__last),
+                               __result); }
 #endif
 
   /**