Skip to content

Add STL compliant typedefs to chai::ManaagedArray #353

@jmikeowen

Description

@jmikeowen

It would be useful if the chai::ManagedArray provided some of the standard typedefs that ordinary C++ STL containers generally provide. I was thinking a nice set would be at least:

  • value_type: The type of element stored in the container (e.g., int, std::string, or a custom class).
  • reference: A reference to an element (value_type&).
  • pointer: A pointer to an element (value_type*).
  • size_type: An unsigned integer type that can represent the size of the largest possible container (often std::size_t).

Since the chai::ManagedArray has reference copy semantics I'm not sure how folks feel about the const_* versions of these (like const_reference), but those wouldn't hurt either. Still the basic four above would be might useful by themselves.

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