Subscript operators

Synopses

Declared in <ball_userfields.h>

Return a reference providing modifiable access to the value at the specified index. The behavior is undefined unless 0 <= index && index < length().

UserFieldValue&
operator[](int index);

Return a reference providing non‐modifiable access to the value at the specified index. The behavior is undefined unless 0 <= index && index < length().

UserFieldValue const&
operator[](int index) const;

Return Value

  • reference providing modifiable access to the value at index

  • reference providing non‐modifiable access to the value at index

Parameters

Name

Description

index

zero‐based index of the value

Created with MrDocs