chsvlib
chsv helper source code

◆ at() [1/2]

reference at ( std::size_t  off)

Provides the caller with a functional access to a column element by its index which is validated.

Parameters
offAn offset of the position of the desired element with respect to the beginning of the column.
Returns
A reference to an element at the position off within the column.
Exceptions
Chusov::Exceptions::OutOfRangeExceptionThe value of off does not appertain to the integral set [0, size() - 1] of valid element indices.