Checks if the array has only one column. More...

bool iscolumn () const
 Checks if the array has only one column. More...
 

Detailed Description

Checks if the array has only one column.

array row(1,5);
if( row.iscolumn() )
; //statement will not be reached
if( col.iscolumn() )
; //statement will be reached

Returns true if the array consists of one column. Otherwise false.

Function Documentation

bool iscolumn ( ) const

Checks if the array has only one column.

array row(1,5);
if( row.iscolumn() )
; //statement will not be reached
if( col.iscolumn() )
; //statement will be reached

Returns true if the array consists of one column. Otherwise false.

Returns
True if the array has only 1 column. False otherwise