operator==,!=,<,<=,>,>=std::valarray

< cpp‎ | numeric‎ | valarray

C++
 Language Standard library headers Concepts Utilities library Strings library Containers library Algorithms library Iterators library Numerics library Input/output library Localizations library Regular expressions library (C++11) Atomic operations library (C++11) Thread support library (C++11)

Numerics library
 Common mathematical functions Floating-point environment Complex numbers Numeric arrays Pseudo-random number generation Compile-time rational arithmetic (C++11) Generic numeric operations iota (C++11) accumulate inner_product adjacent_difference partial_sum

std::valarray
Member functions
Non-member functions
 swap (C++11) begin (C++11) end (C++11) abs exp log log10 pow sqrt sin cos tan asin acos atan atan2 sinh cosh tanh
 operator*operator/operator%operator+operator-operator^operator&operator|operator<>operator&&operator|| operator==operator!=operatoroperator<=operator>=
Helper classes

 template< class T > valarray operator==( const valarray& lhs, const valarray& rhs ); template< class T > valarray operator!=( const valarray& lhs, const valarray& rhs ); template< class T > valarray operator<( const valarray& lhs, const valarray& rhs ); template< class T > valarray operator<=( const valarray& lhs, const valarray& rhs ); template< class T > valarray operator>( const valarray& lhs, const valarray& rhs ); template< class T > valarray operator>=( const valarray& lhs, const valarray& rhs ); (1) template< class T > valarray operator==( const T& lhsv, const valarray& rhs ); template< class T > valarray operator!=( const T& lhsv, const valarray& rhs ); template< class T > valarray operator<( const T& lhsv, const valarray& rhs ); template< class T > valarray operator<=( const T& lhsv, const valarray& rhs ); template< class T > valarray operator>( const T& lhsv, const valarray& rhs ); template< class T > valarray operator>=( const T& lhsv, const valarray& rhs ); (2) template< class T > valarray operator==( const valarray& lhs, const T& rhsv ); template< class T > valarray operator!=( const valarray& lhs, const T& rhsv ); template< class T > valarray operator<( const valarray& lhs, const T& rhsv ); template< class T > valarray operator<=( const valarray& lhs, const T& rhsv ); template< class T > valarray operator>( const valarray& lhs, const T& rhsv ); template< class T > valarray operator>=( const valarray& lhs, const T& rhsv ); (3)

Compares each value within the numeric array with another value.

1) Returns a numeric array of bool containing elements each of which is obtained by applying the indicated comparison operator to the corresponding values of lhs and rhs

The behavior is undefined if size() != v.size()

2) Returns a numeric array of bool containing elements each of which is obtained by applying the indicated comparison operator to lhsv and the corresponding value of rhs .
3) Returns a numeric array of bool containing elements each of which is obtained by applying the indicated comparison operator to the corresponding value of lhs and rhsv.

Contents

Parameters

 lhs, rhs - numeric arrays to compare lhsv, rhsv - values to compare to each element within a numeric array

Return value

A numeric array of bool containing comparison results of corresponding elements.

(none)