Skip to content

[docs] ptr::eq source does not mention smart-pointer comparison behavior. #59214

Closed
@richard-uk1

Description

@richard-uk1

The documentation at the ptr::eq source doesn't mention that smart pointers are compared in their totality, unlike pointer comparison which just compares the addresses. I found out about this behavior on this urlo question.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and tools

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions