Topic: std container extensions or MS extension?
Author: jbh@melb.graphica.com.au (John Hartley)
Date: 1997/05/27 Raw View
Dear C++ standard watchers,
I have recently updated to the Microsoft Visual C++ version 5
compiler.
Its std C++ library has extra member functions in the templated
vector/map etc container classes (from STL), which were not in the
draft standard i saw or in the original STL..
These extensions provide methods for doing comparisions of entire
containers:
The following definitions for these addition are taken straight
from the MS doco.
Are these definitions part of the stardard c++ library????
namespace std {
template<class T, class A>
class Cont;
// TEMPLATE FUNCTIONS
template<class T, class A>
bool operator==(
const Cont<T, A>& lhs,
const Cont<T, A>& rhs);
template<class T, class A>
bool operator!=(
const Cont<T, A>& lhs,
const Cont<T, A>& rhs);
template<class T, class A>
bool operator<(
const Cont<T, A>& lhs,
const Cont<T, A>& rhs);
template<class T, class A>
bool operator>(
const Cont<T, A>& lhs,
const Cont<T, A>& rhs);
template<class T, class A>
bool operator<=(
const Cont<T, A>& lhs,
const Cont<T, A>& rhs);
template<class T, class A>
bool operator>=(
const Cont<T, A>& lhs,
const Cont<T, A>& rhs);
template<class T, class A>
void swap(
const Cont<T, A>& lhs,
const Cont<T, A>& rhs);
};
Thank you for information.
John Hartley
Graphica Software Pty. Ltd.
jbh@melb.graphica.com.au
---
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]
Author: "Paul D. DeRocco" <pderocco@strip_these_words.ix.netcom.com>
Date: 1997/05/28 Raw View
John Hartley wrote:
>
> Dear C++ standard watchers,
>
> I have recently updated to the Microsoft Visual C++ version 5
> compiler.
> Its std C++ library has extra member functions in the templated
> vector/map etc container classes (from STL), which were not in the
> draft standard i saw or in the original STL..
> These extensions provide methods for doing comparisions of entire
> containers:
> The following definitions for these addition are taken straight
> from the MS doco.
> Are these definitions part of the stardard c++ library????
>
> namespace std {
> template<class T, class A>
> class Cont;
> // TEMPLATE FUNCTIONS
> template<class T, class A>
> bool operator==(
> const Cont<T, A>& lhs,
> const Cont<T, A>& rhs);
[etc.]
Yup, they're there. If you haven't already, I suggest downloading the
HTML form of the latest public document, and keeping it on your machine.
It's handy to have at your fingertips. It's at
http://www.setech.com/c++access.html
--
Ciao,
Paul
(Please remove the "strip_these_words." prefix from the return
address, which has been altered to foil junk mail senders.)
---
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]