Created on 2011-05-17.00:00:00 last changed 89 months ago
In [valarray.syn]/4, make the following :
4 Implementations introducing such replacement types shall provide additional functions and operators as follows:
In [valarray.range], make the following :
1 In the begin and end function templates that follow, unspecified1 is a type that meets the requirements of a mutable random access iterator (24.2.7) whose value_type is the template parameter T and whose reference type is T&. unspecified2 is a type that meets the requirements of a constant random access iterator (24.2.7) whose value_type is the template parameter T and whose reference type is const T&.
[ 2012, Portland: applied to WP ]
[ 2012, Kona ]
Moved to Tenatively Ready by post-meeting issues processing group, after confirmation from Gaby.
[ 2011 Bloomington ]
The intent of these overloads is entirely to support the new for syntax, and not to create new containers.
Stefanus provides suggested wording.
[ This issue was discussed on the library reflector starting from c++std-lib-30761. Some of the key conclusions of this discussion were: ]
It was just brought to my attention that the pair of functions begin/end were added to valarray component. Those additions strike me as counter to the long standing agreement that valarray<T> is not yet another container. Valarray values are in general supposed to be treated as a whole, and as such has a loose specification allowing expression template techniques.The addition of these functions sound to me as making it much harder (or close to impossible) to effectively use expression templates as implementation techniques, for no clear benefits. My recommendation would be to drop begin/end - or at least for the const valarray<T>& version. I strongly believe those are defects.
|2014-02-20 13:20:35||admin||set||status: wp -> c++14|
|2013-01-25 00:32:44||admin||set||messages: + msg6342|
|2013-01-25 00:32:44||admin||set||messages: + msg6341|
|2013-01-25 00:32:44||admin||set||messages: + msg6340|
|2013-01-25 00:32:44||admin||set||messages: + msg6339|
|2013-01-25 00:32:44||admin||set||status: new -> wp|
|2011-05-21 11:08:04||admin||set||messages: + msg5783|