]> gcc.gnu.org Git - gcc.git/commitdiff
stl_iterator.h: Added inline to operators == to >=.
authorBenjamin Kosnik <bkoz@gcc.gnu.org>
Tue, 13 Jun 2000 23:48:02 +0000 (23:48 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Tue, 13 Jun 2000 23:48:02 +0000 (23:48 +0000)
2000-06-13  Thomas Holenstein  <thomas@hex.ch>

        * bits/stl_iterator.h: Added inline to operators == to >=.

From-SVN: r34534

libstdc++-v3/ChangeLog
libstdc++-v3/bits/stl_iterator.h

index 688b84b675ad8b1dc2f75443ca178740b0aed0db..535a38a9547f4cb7b951fac1ed7430d2bbbddcf5 100644 (file)
@@ -1,3 +1,25 @@
+2000-06-13  Anthony Williams  <anthony@anthonyw.cjb.net>
+
+       * testsuite/23_containers/bitset_ctor.cc: Qualify reverse wth std::.
+
+       * testsuite/27_io/filebuf.cc: Changed calls to
+       fpos<>._M_position() to implicit calls to operator streamoff().
+       * testsuite/27_io/iostream_objects.cc: Removed #include <ciso646>,
+       as not needed. Revert, as part of standard.
+       * testsuite/27_io/ostream_inserter_arith.cc: Replaced explicit
+       call to numpunct<>._M_init() with overrides of the appropriate
+       virtual functions.
+
+       * testsuite/27_io/stringstream.cc: Removed unnecessary char *
+       pointers from test01, so no need to call base(), which isn't
+       guaranteed to be implemented as iterators may themselves be pointers
+       * testsuite/27_io/stringbuf.cc: Removed unnecessary calls to
+       _M_position() - use implicit conversion to streamoff instead
+
+2000-06-13  Thomas Holenstein  <thomas@hex.ch>
+        * bits/stl_iterator.h: Added inline to operators == to >=.
+
 2000-06-13  Brent Verner <brent@rcfile.org>
 
        * bits/streambuf.tcc: repaired _S_copy_streambufs()
index 289cbe6ea051f90b13f7b6a1008366373ffd0f0f..d6d96f32b4ef76c62b2015d8278a97e16b794d4f 100644 (file)
@@ -1043,35 +1043,41 @@ public:
 // forward iterator requirements
 
 template<typename _IteratorL, typename _IteratorR, typename _Container>
-bool operator==(const __normal_iterator<_IteratorL, _Container>& __lhs,
-                const __normal_iterator<_IteratorR, _Container>& __rhs)
+inline bool
+operator==(const __normal_iterator<_IteratorL, _Container>& __lhs,
+          const __normal_iterator<_IteratorR, _Container>& __rhs)
 { return __lhs.base() == __rhs.base(); }
 
 template<typename _IteratorL, typename _IteratorR, typename _Container>
-bool operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs,
-                const __normal_iterator<_IteratorR, _Container>& __rhs)
+inline bool
+operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs,
+          const __normal_iterator<_IteratorR, _Container>& __rhs)
 { return !(__lhs == __rhs); }
 
 // random access iterator requirements
 
 template<typename _IteratorL, typename _IteratorR, typename _Container>
-bool operator<(const __normal_iterator<_IteratorL, _Container>& __lhs,
-               const __normal_iterator<_IteratorR, _Container>& __rhs)
+inline bool 
+operator<(const __normal_iterator<_IteratorL, _Container>& __lhs,
+         const __normal_iterator<_IteratorR, _Container>& __rhs)
 { return __lhs.base() < __rhs.base(); }
 
 template<typename _IteratorL, typename _IteratorR, typename _Container>
-bool operator>(const __normal_iterator<_IteratorL, _Container>& __lhs,
-               const __normal_iterator<_IteratorR, _Container>& __rhs)
+inline bool
+operator>(const __normal_iterator<_IteratorL, _Container>& __lhs,
+         const __normal_iterator<_IteratorR, _Container>& __rhs)
 { return __rhs < __lhs; }
 
 template<typename _IteratorL, typename _IteratorR, typename _Container>
-bool operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs,
-                const __normal_iterator<_IteratorR, _Container>& __rhs)
+inline bool
+operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs,
+          const __normal_iterator<_IteratorR, _Container>& __rhs)
 { return !(__rhs < __lhs); }
 
 template<typename _IteratorL, typename _IteratorR, typename _Container>
-bool operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs,
-                const __normal_iterator<_IteratorR, _Container>& __rhs)
+inline bool
+operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs,
+          const __normal_iterator<_IteratorR, _Container>& __rhs)
 { return !(__lhs < __rhs); }
 
 template<typename _Iterator, typename _Container>
This page took 0.062516 seconds and 5 git commands to generate.