Topic: Are "min" and "max" for valarray members or not?
Author: Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
Date: Tue, 29 May 2001 07:39:56 CST Raw View
Hubert HOLIN <Hubert.Holin@Bigfoot.com> writes:
| Paris (U.E.), le 28/05/2001
|
| The last free DRAFT of the standard (I still do not have a copy of the
| actual standard for all the bad reasons...) indicates that for valarray,
| "sum" in a member, but "min" and "max" are not.
That is not true. You should definitely have a copy of the standard.
There are std::valarray<T>::min() and std::valarray<T>::max().
--
Gabriel Dos Reis, dosreis@cmla.ens-cachan.fr
---
[ 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 ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]
Author: "James Kuyper Jr." <kuyper@wizard.net>
Date: Tue, 29 May 2001 12:40:35 GMT Raw View
Hubert HOLIN wrote:
>
> Paris (U.E.), le 28/05/2001
>
> The last free DRAFT of the standard (I still do not have a copy of the
> actual standard for all the bad reasons...) indicates that for valarray,
> "sum" in a member, but "min" and "max" are not. My compiler (Metrowerks
> CW) says all three are members. What does the actual standard say?
Section 26.3.2.7 lists all three.
---
[ 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 ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]
Author: "Igor Krasnopeev" <dark__raven@mail.ru>
Date: Tue, 29 May 2001 17:19:48 GMT Raw View
| The last free DRAFT of the standard (I still do not have a copy of the
| actual standard for all the bad reasons...) indicates that for valarray,
| "sum" in a member, but "min" and "max" are not. My compiler (Metrowerks
| CW) says all three are members. What does the actual standard say?
According p26.3.2 min & max are members.
--
HTH
Igor Krasnopeev
---
[ 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 ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]
Author: Hubert HOLIN <Hubert.Holin@Bigfoot.com>
Date: Mon, 28 May 2001 23:01:11 GMT Raw View
Paris (U.E.), le 28/05/2001
The last free DRAFT of the standard (I still do not have a copy of the
actual standard for all the bad reasons...) indicates that for valarray,
"sum" in a member, but "min" and "max" are not. My compiler (Metrowerks
CW) says all three are members. What does the actual standard say?
Hubert Holin
Hubert.Holin@Bigfoot.com
---
[ 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 ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]