Core utility types of the library.
Classes | |
struct | ozo::base_async_operation< Operation, Initiator > |
Base class for async operations. More... | |
struct | ozo::none_t |
None type None type modelling void as ordinary type. This type is callable with return type void. More... | |
struct | ozo::option< Key > |
Option class. More... | |
class | ozo::options_factory_base< RealType, Options > |
Base class for options factories. More... | |
class | ozo::options_factory< Options > |
Generic options factory. More... | |
struct | ozo::thread_safety< enabled > |
defines admissibility to use in multithreaded environment without additional synchronization More... | |
struct | ozo::unwrap_impl< T, When > |
Default implementation of ozo::unwrap() More... | |
struct | ozo::get_unwrapped_type< T > |
Unwraps nullable or reference wrapped type. More... | |
struct | ozo::time_traits |
Time traits of the library. More... | |
Macros | |
#define | OZO_STRONG_TYPEDEF(base, type) |
Strong typedef. More... | |
Types | |
template<typename T > | |
using | ozo::unwrap_type = typename get_unwrapped_type< T >::type |
Shortcut for ozo::get_unwrapped_type . More... | |
Variables | |
constexpr auto | ozo::none = none_t{} |
None object. More... | |
#define OZO_STRONG_TYPEDEF | ( | base, | |
type | |||
) |
Strong typedef.
C++ typedef
creates only an alias to a base type, so the both types are the same. To get a really new type it is necessary to make some boilerplate code. This macro do such work. It is very similar to BOOST_STRONG_TYPEDEF
Except the new type has base_type
type and get()
method which provides access to underlying base type object.
base | — base type |
type | — new type |
using ozo::unwrap_type = typedef typename get_unwrapped_type<T>::type |
Shortcut for ozo::get_unwrapped_type
.
T | – type to unwrap. |
|
constexpr |
None object.
Instance of ozo::none_t type.
Referenced by ozo::begin(), ozo::commit(), ozo::deadline(), ozo::execute(), ozo::get_connection(), ozo::get_transaction_deferrability(), ozo::get_transaction_isolation_level(), ozo::get_transaction_mode(), ozo::request(), and ozo::rollback().