You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
4.0 KiB

  1. /* /////////////////////////////////////////////////////////////////////////
  2. * File: stlsoft/functional/function_adaptors.hpp (originally ::SynesisStd)
  3. *
  4. * Purpose: Contains the stlsoft::mem_fun and stlsoft::ptr_fun calling
  5. * convention-aware function adaptors.
  6. *
  7. * Created: 13th June 1999
  8. * Updated: 10th August 2009
  9. *
  10. * Home: http://stlsoft.org/
  11. *
  12. * Copyright (c) 1999-2009, Matthew Wilson and Synesis Software
  13. * All rights reserved.
  14. *
  15. * Redistribution and use in source and binary forms, with or without
  16. * modification, are permitted provided that the following conditions are met:
  17. *
  18. * - Redistributions of source code must retain the above copyright notice, this
  19. * list of conditions and the following disclaimer.
  20. * - Redistributions in binary form must reproduce the above copyright notice,
  21. * this list of conditions and the following disclaimer in the documentation
  22. * and/or other materials provided with the distribution.
  23. * - Neither the name(s) of Matthew Wilson and Synesis Software nor the names of
  24. * any contributors may be used to endorse or promote products derived from
  25. * this software without specific prior written permission.
  26. *
  27. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  28. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  29. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  30. * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  31. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  32. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  33. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  34. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  35. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  36. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37. * POSSIBILITY OF SUCH DAMAGE.
  38. *
  39. * ////////////////////////////////////////////////////////////////////// */
  40. /** \file stlsoft/functional/function_adaptors.hpp
  41. *
  42. * \brief [C++ only] Main include for function-adapting function classes,
  43. * including member functions, non-member functions, and non-member
  44. * procedures
  45. * (\ref group__library__functional "Functional" Library).
  46. */
  47. #ifndef STLSOFT_INCL_STLSOFT_FUNCTIONAL_HPP_FUNCTION_ADAPTORS
  48. #define STLSOFT_INCL_STLSOFT_FUNCTIONAL_HPP_FUNCTION_ADAPTORS
  49. #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
  50. # define STLSOFT_VER_STLSOFT_FUNCTIONAL_HPP_FUNCTION_ADAPTORS_MAJOR 4
  51. # define STLSOFT_VER_STLSOFT_FUNCTIONAL_HPP_FUNCTION_ADAPTORS_MINOR 0
  52. # define STLSOFT_VER_STLSOFT_FUNCTIONAL_HPP_FUNCTION_ADAPTORS_REVISION 2
  53. # define STLSOFT_VER_STLSOFT_FUNCTIONAL_HPP_FUNCTION_ADAPTORS_EDIT 59
  54. #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */
  55. /* /////////////////////////////////////////////////////////////////////////
  56. * Includes
  57. */
  58. #ifndef STLSOFT_INCL_STLSOFT_H_STLSOFT
  59. # include <stlsoft/stlsoft.h>
  60. #endif /* !STLSOFT_INCL_STLSOFT_H_STLSOFT */
  61. #ifndef STLSOFT_INCL_STLSOFT_FUNCTIONAL_HPP_FUNCTION_POINTER_ADAPTORS
  62. # include <stlsoft/functional/function_pointer_adaptors.hpp>
  63. #endif /* !STLSOFT_INCL_STLSOFT_FUNCTIONAL_HPP_FUNCTION_POINTER_ADAPTORS */
  64. #if !defined(STLSOFT_COMPILER_IS_GCC) || \
  65. __GNUC__ > 3 || \
  66. ( __GNUC__ == 3 && \
  67. __GNUC_MINOR__ >= 3)
  68. # ifndef STLSOFT_INCL_STLSOFT_FUNCTIONAL_HPP_METHOD_ADAPTORS
  69. # include <stlsoft/functional/method_adaptors.hpp>
  70. # endif /* !STLSOFT_INCL_STLSOFT_FUNCTIONAL_HPP_METHOD_ADAPTORS */
  71. #endif /* compiler */
  72. #ifndef STLSOFT_INCL_STLSOFT_FUNCTIONAL_HPP_FUNCTION_POINTER_ADAPTORS
  73. # include <stlsoft/functional/procedure_adaptors.hpp>
  74. #endif /* !STLSOFT_INCL_STLSOFT_FUNCTIONAL_HPP_FUNCTION_POINTER_ADAPTORS */
  75. /* ////////////////////////////////////////////////////////////////////// */
  76. #endif /* !STLSOFT_INCL_STLSOFT_FUNCTIONAL_HPP_FUNCTION_ADAPTORS */
  77. /* ///////////////////////////// end of file //////////////////////////// */