Wt  3.3.9
Public Types | List of all members
Wt::Dbo::ptr_tuple< T0, T1,..., T9 > Struct Template Reference

A utility class for defining a tuple of database objects. More...

Public Types

typedef boost::tuple< ptr< T0 >, ptr< T1 >,..., ptr< T9 > > type
 A typedef for a Boost.Tuple for ptrs.
 

Detailed Description

template<class T0 = boost::tuples::null_type, class T1 = boost::tuples::null_type, ..., class T9 = boost::tuples::null_type>
struct Wt::Dbo::ptr_tuple< T0, T1,..., T9 >

A utility class for defining a tuple of database objects.

Since C++ (at least prior to C++0x) does not support template typedefs, this class provides a nested type that is a typedef for a Boost.Tuple containing one or more Wt::Dbo::ptr.

Thus:

namespace dbo = Wt::Dbo;
typedef dbo::ptr_tuple<A, B, C>::type ABC;

Is equivalent to:

namespace dbo = Wt::Dbo;
typedef boost::tuple<dbo::ptr<A>, dbo::ptr<B>, dbo::ptr<C> > ABC;
Note
Boost.Tuple (in its general form) is supported as a result for a Session::query() by a partial template specialization of query_result_traits.

Generated on Tue Nov 21 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11