HomeManualTopicsTypesSymbols

std::equal

compares two objects for equality

Parameters

left
the left operand
right
the right operand

Result

equal
true if left and right are equal, false otherwise

Description

Two objects are equal if the equal function says so ... ^^

Two identical objects should always be equal.

std::undefined should only be equal to itself and to no other object.

There is no separate function to test non-equality.

a != b

is converted by the compiler to

std::not(std::equal(a b))

Topics

Objects

Numbers

See also

std::less compares two objects in an object specific way

Implemented by

std_types::boolean_array implements the *equal* operation
std_types::character compares two characters for equality
std_types::character_array implements the *equal* operation
std_types::date_and_time compares two date-and-time objects for equality
std_types::device_id compares two device IDs for equality
std_types::directory compares two directories for equality
std_types::error_number compares two error numbers for equality
std_types::false is only equal to itself
std_types::file_descriptor compares two file descriptors for equality
std_types::file_type compares two file types for equality
std_types::group_id compares two group IDs for equality
std_types::inode_number compares two inode numbers for equality
std_types::int16_array implements the *equal* operation
std_types::int32_array implements the *equal* operation
std_types::int64_array implements the *equal* operation
std_types::int8_array implements the *equal* operation
std_types::octet_string returns if both strings have the same contents
std_types::positive_integer returns true if both arguments are numerically equal
std_types::process_id compares two process ids for equality
std_types::quad_octet_string returns if both strings have the same contents
std_types::real implements the *equal* operation for real numbers
std_types::shutdown_type compares two shutdown types for equality
std_types::true is only equal to itself
std_types::uint16_array implements the *equal* operation
std_types::uint32_array implements the *equal* operation
std_types::uint64_array implements the *equal* operation
std_types::uint8_array implements the *equal* operation
std_types::undefined is only equal to itself
std_types::unique_item compares two unique items for equality
std_types::user_id compares two user ids for equality