Home Libraries Author Links

stm::db::optional< T > Struct Template Reference
[DbMap: Named Persistent Associative Containers]

#include <dbmap.hpp>

List of all members.


Detailed Description

template<typename T>
struct stm::db::optional< T >

The class template optional<T> is a boost::variant type consisting of a db::null_type member, if the instance holds no T value and a T member, if it holds a T value.

Examples:

dbmaptest.cpp.

Definition at line 378 of file dbmap.hpp.


Public Member Functions

bool exists () const
 Returns true, if this object holds a T value, else false.

Member Function Documentation

template<typename T>
bool stm::db::optional< T >::exists (  )  const [inline]

Returns true, if this object holds a T value, else false.

Definition at line 2994 of file dbxmap.hpp.


The documentation for this struct was generated from the following files:

© Copyright Tom Michaelis 2002-2007

Distributed under the SysToMath Software License (See the accompanying file license.txt or a copy at www.SysToMath.com).