Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82205 - trunk/libs/tti/doc
From: eldiener_at_[hidden]
Date: 2012-12-25 17:59:29


Author: eldiener
Date: 2012-12-25 17:59:28 EST (Tue, 25 Dec 2012)
New Revision: 82205
URL: http://svn.boost.org/trac/boost/changeset/82205

Log:
Updated using examples.
Text files modified:
   trunk/libs/tti/doc/tti_using_mm.qbk | 45 ++++++++++++++++++++++++++++++++++++++-
   1 files changed, 43 insertions(+), 2 deletions(-)

Modified: trunk/libs/tti/doc/tti_using_mm.qbk
==============================================================================
--- trunk/libs/tti/doc/tti_using_mm.qbk (original)
+++ trunk/libs/tti/doc/tti_using_mm.qbk 2012-12-25 17:59:28 EST (Tue, 25 Dec 2012)
@@ -95,14 +95,18 @@
    T
>
    
-[heading Type checking the typedef]
+[heading Type checking the typedef using a lambda expression]
 
 Does T have a nested typedef called 'AnIntType' whose type is an 'int' ?
 
+ #include <boost/mpl/placeholders.hpp
+ #include <boost/type_traits/is_same.hpp
+ using namespace boost::mpl::placeholders;
+
  has_type_AnIntType
    <
    T,
- int
+ boost::is_same<_1,int>
>
 
 [heading Template]
@@ -165,6 +169,17 @@
    AType::BType
>
 
+[heading Member data with composite type]
+
+Does T have a member data called 'IntBT' whose type is 'AType::BType' ?
+
+ BOOST_TTI_HAS_MEMBER_DATA(IntBT)
+
+ has_member_data_IntBT
+ <
+ AType::BType T::*
+ >
+
 [heading Member function with individual types]
 
 Does T have a member function called 'IntFunction' whose type is
@@ -229,6 +244,32 @@
    int (long,double)
>
 
+[heading Data]
+
+Does T have a member data or static member data called 'DSMember' whose type is 'short' ?
+
+ BOOST_TTI_HAS_DATA(DSMember)
+
+ has_static_member_data_DSMember
+ <
+ T,
+ short
+ >
+
+[heading Function]
+
+Does T have a member function or a static member function called 'IntFunction' whose type is
+'int (short)' ?
+
+ BOOST_TTI_HAS_FUNCTION(IntFunction)
+
+ has_function_IntFunction
+ <
+ T,
+ int,
+ boost::mpl::vector<short>
+ >
+
 [heading Member type]
 
 Create a nested type T::BType::CType without creating a compiler error


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk