chsvlib
chsv helper source code

◆ at() [2/2]

const_reference at ( std::size_t  off) const

Provides the caller with a functional access to an immutable 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 immutable 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.