transform_traits.qbk 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. [/
  2. Copyright 2007 John Maddock.
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt).
  6. ]
  7. [section:transform Type Traits that Transform One Type to Another]
  8. The following templates transform one type to another,
  9. based upon some well-defined rule.
  10. Each template has a single member called `type` that is the
  11. result of applying the transformation to the template argument `T`.
  12. [*Synopsis:]
  13. template <class T>
  14. struct __add_const;
  15. template <class T>
  16. struct __add_cv;
  17. template <class T>
  18. struct __add_lvalue_reference;
  19. template <class T>
  20. struct __add_pointer;
  21. template <class T>
  22. struct __add_reference;
  23. template <class T>
  24. struct __add_rvalue_reference;
  25. template <class T>
  26. struct __add_volatile;
  27. template <bool B, class T, class U>
  28. struct __conditional;
  29. template <class... T>
  30. struct __common_type;
  31. template <class T, class U>
  32. struct __copy_cv;
  33. template <class T>
  34. struct __decay;
  35. template <class T>
  36. struct __floating_point_promotion;
  37. template <class T>
  38. struct __integral_promotion;
  39. template <class T>
  40. struct __make_signed;
  41. template <class T>
  42. struct __make_unsigned;
  43. template <class T>
  44. struct __promote;
  45. template <class T>
  46. struct __remove_all_extents;
  47. template <class T>
  48. struct __remove_const;
  49. template <class T>
  50. struct __remove_cv;
  51. template <class T>
  52. struct __remove_extent;
  53. template <class T>
  54. struct __remove_pointer;
  55. template <class T>
  56. struct __remove_reference;
  57. template <class T>
  58. struct __remove_volatile;
  59. template <class T>
  60. struct __type_identity;
  61. [endsect]