Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext
array::operator!=

Return true if two arrays are not equal.

Synopsis

Defined in header <boost/json/array.hpp>

friend bool
operator!=(
    array const& lhs,
    array const& rhs);
Description

Arrays are equal when their sizes are the same, and they are element-for-element equal in order.

Effects

return ! std::equal( lhs.begin(), lhs.end(), rhs.begin(), rhs.end() );

Complexity

Constant or linear in lhs.size().

Exception Safety

No-throw guarantee.

Convenience header <boost/json.hpp>


PrevUpHomeNext