A backport from trunk included these attributes, but they aren't present
on the other std::begin and std::end overloads, so remove them from
these overloads.
libstdc++-v3/ChangeLog:
* include/std/valarray (begin, end): Remove nodiscard attribute.
* @param __va valarray.
*/
template<class _Tp>
- [[__nodiscard__]]
inline _Tp*
begin(valarray<_Tp>& __va) noexcept
{ return __va.size() ? std::__addressof(__va[0]) : nullptr; }
* @param __va valarray.
*/
template<class _Tp>
- [[__nodiscard__]]
inline const _Tp*
begin(const valarray<_Tp>& __va) noexcept
{ return __va.size() ? std::__addressof(__va[0]) : nullptr; }
* @param __va valarray.
*/
template<class _Tp>
- [[__nodiscard__]]
inline _Tp*
end(valarray<_Tp>& __va) noexcept
{
* @param __va valarray.
*/
template<class _Tp>
- [[__nodiscard__]]
inline const _Tp*
end(const valarray<_Tp>& __va) noexcept
{