operator!=

## `operator!=`

Checks if lhs does not equal rhs.

### Synopsis

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

    bool
    operator!=(
        string const& lhs,
        string const& rhs) noexcept; (1)

    bool
    operator!=(
        storage_ptr const& lhs,
        storage_ptr const& rhs) noexcept; (2)

### Description

- (1) A lexicographical comparison is used.

- (2) equivalent to `lhs.get() != rhs.get()`.

### Complexity

- (1) linear in `lhs.size() + rhs.size()`.

- (2) constant.

### Exception Safety

No-throw guarantee.

Convenience header <boost/json.hpp>

Edit this page