Ticket #1686: type_traits.patch
File type_traits.patch, 4.7 KB (added by , 15 years ago) |
---|
-
libs/type_traits/doc/examples.qbk
11 11 12 12 Demonstrates a version of `std::copy` that uses `__has_trivial_assign` to 13 13 determine 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]): 15 15 16 16 // 17 17 // opt::copy … … 62 62 63 63 Demonstrates a version of `std::fill` that uses `__has_trivial_assign` to 64 64 determine 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]): 66 66 67 67 // 68 68 // fill … … 107 107 108 108 Demonstrates a simple algorithm that uses `__has_trivial_destruct` to 109 109 determine 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]): 111 111 112 112 // 113 113 // algorithm destroy_array: … … 153 153 then takes special care over the swap to ensure that the algorithm 154 154 works correctly for both proxying iterators, and even iterators of 155 155 different 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]): 157 157 158 158 // 159 159 // iter_swap: … … 203 203 [section:to_double Convert Numeric Types and Enums to double] 204 204 205 205 Demonstrates 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 207 Numeric Types] 207 208 and enum types to double: 208 209 209 210 template<class T> -
libs/type_traits/doc/mpl.qbk
8 8 [section:mpl MPL Interoperability] 9 9 10 10 All 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 intrusive11 for an [@../../../../libs/mpl/doc/refmanual/integral-constant.html Integral Constant type]: that includes a number of rather intrusive 12 12 workarounds for broken compilers. 13 13 14 14 Purely as an implementation detail, this 15 means that `__true_type` inherits from [@../../ libs/mpl/doc/refmanual/bool.html `boost::mpl::true_`], `__false_type` inherits16 from [@../../ libs/mpl/doc/refmanual/bool.html `boost::mpl::false_`], and `__integral_constant<T, v>` inherits from17 [@../../ libs/mpl/doc/refmanual/integral-c.html `boost::mpl::integral_c<T,v>`] (provided `T` is not `bool`)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`) 18 18 19 19 [endsect] 20 20 -
libs/type_traits/doc/credits.qbk
8 8 [section:credits Credits] 9 9 10 10 This 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] 12 and [@../../../../doc/html/boostbook.html Boost.DocBook]. 13 13 14 14 The original version of this library was created by Steve Cleary, 15 15 Beman Dawes, Howard Hinnant, and John Maddock. John Maddock is the -
libs/type_traits/doc/intrinsics.qbk
41 41 * __is_stateless 42 42 43 43 The 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 simply44 [@../../../../boost/type_traits/intrinsics.hpp boost/type_traits/intrinsics.hpp], adding support for new compilers is simply 45 45 a matter of defining one of more of the following macros: 46 46 47 47 [table Macros for Compiler Intrinsics