Ticket #1686: type_traits.patch

File type_traits.patch, 4.7 KB (added by Daniel James, 15 years ago)
  • libs/type_traits/doc/examples.qbk

     
    1111
    1212Demonstrates a version of `std::copy` that uses `__has_trivial_assign` to
    1313determine whether to use `memcpy` to optimise the copy operation
    14 (see [@../../libs/type_traits/examples/copy_example.cpp copy_example.cpp]):
     14(see [@../../examples/copy_example.cpp copy_example.cpp]):
    1515
    1616   //
    1717   // opt::copy
     
    6262
    6363Demonstrates a version of `std::fill` that uses `__has_trivial_assign` to
    6464determine whether to use `memset` to optimise the fill operation
    65 (see [@../../libs/type_traits/examples/fill_example.cpp fill_example.cpp]):
     65(see [@../../examples/fill_example.cpp fill_example.cpp]):
    6666
    6767   //
    6868   // fill
     
    107107
    108108Demonstrates a simple algorithm that uses `__has_trivial_destruct` to
    109109determine whether to destructors need to be called
    110 (see [@../../libs/type_traits/examples/trivial_destructor_example.cpp trivial_destructor_example.cpp]):
     110(see [@../../examples/trivial_destructor_example.cpp trivial_destructor_example.cpp]):
    111111
    112112   //
    113113   // algorithm destroy_array:
     
    153153then takes special care over the swap to ensure that the algorithm
    154154works correctly for both proxying iterators, and even iterators of
    155155different types
    156 (see [@../../libs/type_traits/examples/iter_swap_example.cpp iter_swap_example.cpp]):
     156(see [@../../examples/iter_swap_example.cpp iter_swap_example.cpp]):
    157157
    158158   //
    159159   // iter_swap:
     
    203203[section:to_double Convert Numeric Types and Enums to double]
    204204
    205205Demonstrates a conversion of
    206 [@../../libs/numeric/conversion/doc/definitions.html#numtypes Numeric Types]
     206[@../../../../libs/numeric/conversion/doc/html/boost_numericconversion/definitions.html#boost_numericconversion.definitions.numeric_types
     207Numeric Types]
    207208and enum types to double:
    208209
    209210    template<class T>
  • libs/type_traits/doc/mpl.qbk

     
    88[section:mpl MPL Interoperability]
    99
    1010All the value based traits in this library conform to MPL's requirements
    11 for an [@../../libs/mpl/doc/refmanual/integral-constant.html Integral Constant type]: that includes a number of rather intrusive
     11for an [@../../../../libs/mpl/doc/refmanual/integral-constant.html Integral Constant type]: that includes a number of rather intrusive
    1212workarounds for broken compilers. 
    1313
    1414Purely as an implementation detail, this
    15 means that `__true_type` inherits from [@../../libs/mpl/doc/refmanual/bool.html `boost::mpl::true_`], `__false_type` inherits
    16 from [@../../libs/mpl/doc/refmanual/bool.html `boost::mpl::false_`], and `__integral_constant<T, v>` inherits from
    17 [@../../libs/mpl/doc/refmanual/integral-c.html `boost::mpl::integral_c<T,v>`] (provided `T` is not `bool`)
     15means that `__true_type` inherits from [@../../../../libs/mpl/doc/refmanual/bool.html `boost::mpl::true_`], `__false_type` inherits
     16from [@../../../../libs/mpl/doc/refmanual/bool.html `boost::mpl::false_`], and `__integral_constant<T, v>` inherits from
     17[@../../../../libs/mpl/doc/refmanual/integral-c.html `boost::mpl::integral_c<T,v>`] (provided `T` is not `bool`)
    1818
    1919[endsect]
    2020
  • libs/type_traits/doc/credits.qbk

     
    88[section:credits Credits]
    99
    1010This documentation was pulled together by John Maddock, using
    11 [@../../tools/quickbook/doc/html/index.html Boost.Quickbook]
    12 and [@boostbook.html Boost.DocBook].
     11[@../../../../tools/quickbook/doc/html/index.html Boost.Quickbook]
     12and [@../../../../doc/html/boostbook.html Boost.DocBook].
    1313 
    1414The original version of this library was created by Steve Cleary,
    1515Beman Dawes, Howard Hinnant, and John Maddock.  John Maddock is the
  • libs/type_traits/doc/intrinsics.qbk

     
    4141* __is_stateless
    4242
    4343The hooks for compiler-intrinsic support are defined in
    44 [@../../boost/type_traits/intrinsics.hpp boost/type_traits/intrinsics.hpp], adding support for new compilers is simply
     44[@../../../../boost/type_traits/intrinsics.hpp boost/type_traits/intrinsics.hpp], adding support for new compilers is simply
    4545a matter of defining one of more of the following macros:
    4646
    4747[table Macros for Compiler Intrinsics