Ticket #8589: fix_tti_typo.patch

File fix_tti_typo.patch, 4.3 KB (added by Michel Morin, 9 years ago)
  • boost/tti/has_template.hpp

     
    3232/**
    3333
    3434    trait = the name of the metafunction.
    35     ...   = variadic paramaters.
     35    ...   = variadic parameters.
    3636   
    3737            The first variadic parameter is the inner class template name.
    3838           
    … …  
    124124/// Expands to a metafunction which tests whether an inner class template with a particular name exists.
    125125/**
    126126
    127     ...   = variadic paramaters.
     127    ...   = variadic parameters.
    128128   
    129129            The first variadic parameter is the inner class template name.
    130130           
  • libs/tti/doc/tti_nested_type.qbk

     
    169169   
    170170    class T = a metafunction type
    171171   
    172     returns = true if the return 'type' of the meatfunction exists,
     172    returns = true if the return 'type' of the metafunction exists,
    173173              false if it does not.'Existence' is determined by whether
    174174              the return 'type' does not equal the marker type of
    175175              BOOST_TTI_MEMBER_TYPE.
  • libs/tti/doc/tti_functionality.qbk

     
    150150
    151151# 'has_member_function_AMemberFunction<CType,int,boost::mpl::vector<int> >::value' is a
    152152compile time constant telling us whether 'AMemberFunction' is a member function of type 'CType'
    153 whose function signtaure is 'int (int)'.
     153whose function signature is 'int (int)'.
    154154
    155155# 'has_member_function_AMemberFunction<CType,double,boost::mpl::vector<long> >::value' is a
    156156compile time constant telling us whether 'AMemberFunction' is a member function of type 'CType'
    157 whose function signtaure is 'double (long)'.
     157whose function signature is 'double (long)'.
    158158
    159159These are just two examples of the ways a particular macro metafunction can be reused. The two
    160160'constants' when generating a macro metafunction are the 'name' and 'type of inner element'. Once
    … …  
    193193if the metafunction being generated by TTI is named 'MyMetafunction' using the complex
    194194macro form, do not create any C++ construct with an identifier starting with 'MyMetaFunction',
    195195such as 'MyMetaFunction_Enumeration' or 'MyMetaFunctionHelper' in the same scope.
    196 All names starting wih the metafunction name in the current scope should be considered
     196All names starting with the metafunction name in the current scope should be considered
    197197out of bounds for the programmer using TTI.
    198198
    199199[endsect]
  • libs/tti/doc/tti_detail_has_template_check_params.qbk

     
    100100[macroref BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS]. In this form
    101101the first parameter is still the name of an inner class template
    102102whose existence the programmer wants to check. Subsequent parameters
    103 are the the template parameters of the inner class template to check,
     103are the template parameters of the inner class template to check,
    104104each as an individual macro parameter. The macro generates a
    105105metafunction with the same name as the non-variadic macro form,
    106106namely 'has_template_check_params_'name_of_inner_class_template'.
  • libs/tti/doc/tti_detail_has_member_data.qbk

     
    4444[heading Invoking the metafunction]
    4545
    4646You invoke the metafunction by instantiating the template with an enclosing
    47 type to introspect and the type of the member data, or by instantating the
     47type to introspect and the type of the member data, or by instantiating the
    4848template with a pointer to member data type. The return value called 'value'
    4949is a compile time bool constant telling you whether or not the member data .
    5050exists.