boost::foreach_detail_::simple_variant< T > Struct Template Reference

#include <foreach.hpp>

List of all members.

Public Member Functions

 simple_variant (T const *t)
 simple_variant (T const &t)
 simple_variant (simple_variant const &that)
 ~simple_variant ()
T const * get () const

Private Types

enum  size_type { size = sizeof(T) > sizeof(T*) ? sizeof(T) : sizeof(T*) }

Private Member Functions

simple_variantoperator= (simple_variant const &)

Private Attributes

bool const is_rvalue
aligned_storage< size > data


Detailed Description

template<typename T>
struct boost::foreach_detail_::simple_variant< T >

Definition at line 408 of file foreach.hpp.


Member Enumeration Documentation

template<typename T>
enum boost::foreach_detail_::simple_variant::size_type [private]

Enumerator:
size 

Definition at line 446 of file foreach.hpp.


Constructor & Destructor Documentation

template<typename T>
boost::foreach_detail_::simple_variant< T >::simple_variant ( T const *  t  )  [inline]

Definition at line 410 of file foreach.hpp.

References boost::foreach_detail_::simple_variant< T >::data.

template<typename T>
boost::foreach_detail_::simple_variant< T >::simple_variant ( T const &  t  )  [inline]

Definition at line 416 of file foreach.hpp.

References boost::foreach_detail_::simple_variant< T >::data.

template<typename T>
boost::foreach_detail_::simple_variant< T >::simple_variant ( simple_variant< T > const &  that  )  [inline]

template<typename T>
boost::foreach_detail_::simple_variant< T >::~simple_variant (  )  [inline]


Member Function Documentation

template<typename T>
T const* boost::foreach_detail_::simple_variant< T >::get (  )  const [inline]

template<typename T>
simple_variant& boost::foreach_detail_::simple_variant< T >::operator= ( simple_variant< T > const &   )  [private]


Member Data Documentation

template<typename T>
bool const boost::foreach_detail_::simple_variant< T >::is_rvalue [private]

template<typename T>
aligned_storage<size> boost::foreach_detail_::simple_variant< T >::data [private]


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs