...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
An owning, read-only sequence of rows.
Defined in header <boost/mysql/rows.hpp>
class rows
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 |
---|---|
Returns the i-th row or throws an exception. |
|
Returns the last row. |
|
Returns an iterator to the first element in the collection. |
|
Returns true if there are no rows in the collection (i.e. |
|
Returns an iterator to one-past-the-last element in the collection. |
|
Returns the first row. |
|
Returns the number of elements each row in the collection has. |
|
Copy assignment. |
|
Returns the i-th row (unchecked access). |
|
Creates a |
|
rows [constructor] |
Construct an empty |
Returns the number of rows in the collection. |
|
~rows [destructor] |
Destructor. |
Name |
Description |
---|---|
Equality operator. |
|
Inequality operator. |
Models an owning, matrix-like container. Indexing a rows
object (by using iterators, rows::at
or rows::operator[]
)
returns a row_view
object, representing a
single row. All rows in the collection are the same size (as given by num_columns
).
A rows
object owns a chunk
of memory in which it stores its elements. The rows_view
objects obtained on element
access point into the rows
'
internal storage. These views (and any row_view
and field_view
obtained from the former)
behave like references, and are valid as long as pointers, iterators and
references into the rows
object remain valid.
Although owning, rows
is
read-only. It's optimized for memory re-use.
Convenience header <boost/mysql.hpp>