\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
vector_size#
View page sourceSize of a Vector#
Syntax#
n = v.size ()
v#
The object v has one of the following prototypes:
const vec_bool& vconst vec_int& vconst vec_double& vconst vec_a_double& vn#
The result has c++ prototype
size_t ni.e., it is a positive integer. Its value is the number of elements in the vector v .