Skip to content

Return type of NDIndex first() and last() methods should maybe be unsigned #411

@s-mayani

Description

@s-mayani

The NDIndex class is used to index domains in Field layouts in IPPL. When querying the first() and last() index of the NDIndex, it makes conceptually sense that the return type is an index (unsigned int or size_t) instead of int, as that implies that there can be negative indexing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions