prg_vector_size()

Abstract

Provides the number of elements currently stored within the vector.

Syntax

prg_vector_size (vector_ptr)
Argument Type Description
vector_ptr PrgT_Vector * vector of interest

Return Type

unsigned long

number of elements currently in the vector

prg_vector.h

Details

The vector keeps track of how many elements have been successfully inserted. This function call involves no searching or counting of elements. Note that the initial size of the vector is not related to the size returned by this function. The initial size is used to control memory allocation. When a vector is first created it is empty so the value returned by prg_vector_size() for that vector is zero. If the vector_ptr argument is NIL or references an invalid vector, this procedure returns zero.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com