MCPcopy Create free account
hub / github.com/cusplibrary/cusplibrary / operator[]

Method operator[]

cusp/iterator/join_iterator.h:223–226  ·  view source on GitHub ↗

! \brief Subscript access to the data contained in this iterator. * \param n The index of the element for which data should be accessed. * \return Read/write reference to data. * * This operator allows for easy, array-style, data access. * Note that data access with this operator is unchecked and * out_of_range lookups are not defined. */

Source from the content-addressed store, hash-verified

221 * out_of_range lookups are not defined.
222 */
223 reference operator[](size_type n) const
224 {
225 return *(begin() + n);
226 }
227
228protected:
229

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected