operator =

Function

  • Reloads the operator (=) of the inference request body object to assign values to the request body object whose sequence number type is uint64_t.
  • Reloads the operator (=) of the inference request body object to assign values to the request body object whose sequence number type is string.
  • Reloads the operator (=) of the inference request body object to assign the value of an existing request body object to a new one.

Format

InferRequestId &operator = (const uint64_t rhs);
InferRequestId &operator = (const std::string &rhs);
InferRequestId &operator = (const InferRequestId &rhs);

Parameters

Parameter

Mandatory/Optional

Description

Value

rhs

Mandatory

Sequence number of the request body, which uniquely identifies the request body.

Valid uint64_t value.

Parameter

Mandatory/Optional

Description

Value

rhs

Mandatory

Sequence number of the request body, which uniquely identifies the request body.

Valid string type

Parameter

Mandatory/Optional

Description

Value

rhs

Mandatory

Inference request body object

Valid request InferRequestId object.

Usage Example

Construct a request ID object and overloads the operator (=).

1
2
3
4
5
mindie_llm::InferRequestId runtimeReqId1(0);
uint64_t reqId = 0;
mindie_llm::InferRequestId runtimeReqId2 = reqId ;
mindie_llm::InferRequestId runtimeReqId3 = "Req";
mindie_llm::InferRequestId runtimeReqId4 = runtimeReqId1;

Return Value

InferRequestId object