libmoost
moost::container::pod_pair< T1, T2 > Struct Template Reference

#include <pod_pair.hpp>

List of all members.

Public Member Functions

 BOOST_STATIC_ASSERT_MSG (boost::is_pod< T1 >::value,"pod_pair<> template can only handle POD types (T1)")
 BOOST_STATIC_ASSERT_MSG (boost::is_pod< T2 >::value,"pod_pair<> template can only handle POD types (T2)")

Public Attributes

T1 first
T2 second

Detailed Description

template<typename T1, typename T2>
struct moost::container::pod_pair< T1, T2 >

Helper struct for memory-mapped map types

Unfortunately, std::pair<> itself isn't POD even when used with only POD types. Thus we need this std::pair<> look-a-like that is POD.

Definition at line 42 of file pod_pair.hpp.


Member Function Documentation

template<typename T1 , typename T2 >
moost::container::pod_pair< T1, T2 >::BOOST_STATIC_ASSERT_MSG ( boost::is_pod< T1 >::value  ,
"pod_pair<> template can only handle POD types (T1)"   
)
template<typename T1 , typename T2 >
moost::container::pod_pair< T1, T2 >::BOOST_STATIC_ASSERT_MSG ( boost::is_pod< T2 >::value  ,
"pod_pair<> template can only handle POD types (T2)"   
)

Member Data Documentation

template<typename T1 , typename T2 >
T1 moost::container::pod_pair< T1, T2 >::first

Definition at line 47 of file pod_pair.hpp.

template<typename T1 , typename T2 >
T2 moost::container::pod_pair< T1, T2 >::second

Definition at line 48 of file pod_pair.hpp.


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