...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Variant-like class that can represent of any of the allowed database types.
Defined in header <boost/mysql/field.hpp>
class field;
Name |
Description |
---|---|
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
field [constructor] |
Constructs a |
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
Retrieves a reference to the underlying |
|
Returns whether this |
|
Returns whether this |
|
Returns whether this |
|
Returns whether this |
|
Returns whether this |
|
Returns whether this |
|
Returns whether this |
|
Returns whether this |
|
Returns whether this |
|
Returns whether this |
|
Returns the type of the value this |
|
Constructs a |
|
Copy assignment. |
|
~field [destructor] |
Destructor. |
Name |
Description |
---|---|
Tests for inequality. |
|
Streams a |
|
Tests for equality. |
This is a regular variant-like class that can represent any of the types
that MySQL allows. It has value semantics (as opposed to field_view
). Instances of this class
are not created by the library. They should be created by the user, when
the reference semantics of field_view
are not appropriate.
Like a variant, at any point, a field
always contains a value of certain type. You can query the type using kind
and the is_xxx
functions
like is_int64
. Use as_xxx
and get_xxx
for checked and
unchecked value access, respectively. You can mutate a field
by calling the assignment operator, or using the lvalue references returned
by as_xxx
and get_xxx
.
Convenience header <boost/mysql.hpp>