![]() |
Home | Libraries | People | FAQ | More |
The reference type.
using reference = row_view;
|
Name |
Description |
|---|---|
|
A random access iterator to an element. |
|
|
The reference type. |
|
|
A signed integer type used to represent differences. |
|
|
A random access iterator to an element. |
|
|
The reference type. |
|
|
An unsigned integer type to represent sizes. |
|
|
A type that can hold elements in this collection with value semantics. |
|
Name |
Description |
|---|---|
|
Converts the row into a |
|
|
Returns the i-th element in the row or throws an exception. |
|
|
Returns the last element in the row. |
|
|
Returns an iterator to the first field in the row. |
|
|
Returns true if there are no fields in the row (i.e. |
|
|
Returns an iterator to one-past-the-last field in the row. |
|
|
Returns the first element in the row. |
|
|
Returns the i-th element in the row (unchecked access). |
|
|
Constructs an empty (but valid) view. |
|
|
Returns the number of fields in the row. |
|
Name |
Description |
|---|---|
|
Equality operator. |
|
|
Inequality operator. |
A row_view points to memory
owned by an external entity (like string_view
does). The validity of a row_view
depends on how it was obtained:
row object (by calling row::operator row_view()), the view acts as a reference
to the row's allocated memory, and is valid as long as references to
that row elements are valid.
rows object, the same applies.
rows_view object, it's valid
as long as the rows_view
is valid.
Calling any member function on an invalid view results in undefined behavior.
When indexed (by using iterators, row_view::at or row_view::operator[]),
it returns field_view elements that are valid
as long as the underlying storage that *this points to is valid. Destroying a row_view doesn't invalidate field_views obtained from it.
Instances of this class are usually created by the library, not by the user.