imgtools/imglib/boostlibrary/boost/tr1/functional.hpp
author srilekhas <srilekhas@symbian.org>
Wed, 18 Aug 2010 11:18:38 +0100
changeset 627 cb3264f4c6e6
parent 600 6d08f4a05d93
permissions -rw-r--r--
Merge : re-applies missing part of fix for Bug 2901,Add export for s60ibymacros.pm
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
600
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     1
//  (C) Copyright John Maddock 2005.
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     2
//  Use, modification and distribution are subject to the
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     3
//  Boost Software License, Version 1.0. (See accompanying file
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     4
//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     5
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     6
#ifndef BOOST_TR1_FUNCTIONAL_HPP_INCLUDED
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     7
#  define BOOST_TR1_FUNCTIONAL_HPP_INCLUDED
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     8
#  include <boost/tr1/detail/config.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     9
#  include <functional>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    10
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    11
#if defined(BOOST_HAS_TR1_REFERENCE_WRAPPER) \
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    12
   || defined(BOOST_HAS_TR1_RESULT_OF)\
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    13
   || defined(BOOST_HAS_TR1_MEM_FN)\
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    14
   || defined(BOOST_HAS_TR1_BIND)\
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    15
   || defined(BOOST_HAS_TR1_FUNCTION)\
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    16
   || defined(BOOST_HAS_TR1_HASH)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    17
#  ifdef BOOST_HAS_INCLUDE_NEXT
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    18
#     include_next BOOST_TR1_HEADER(functional)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    19
#  else
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    20
#     include <boost/tr1/detail/config_all.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    21
#     include BOOST_TR1_STD_HEADER(BOOST_TR1_PATH(functional))
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    22
#  endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    23
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    24
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    25
#ifndef BOOST_HAS_TR1_REFERENCE_WRAPPER
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    26
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    27
#include <boost/ref.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    28
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    29
namespace std{ namespace tr1{
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    30
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    31
   using ::boost::reference_wrapper;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    32
   using ::boost::ref;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    33
   using ::boost::cref;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    34
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    35
} }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    36
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    37
#endif  // BOOST_HAS_TR1_REFERENCE_WRAPPER
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    38
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    39
#if !defined(BOOST_HAS_TR1_RESULT_OF)\
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    40
   && !defined(BOOST_NO_SFINAE) && \
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    41
   !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    42
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    43
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    44
// we can only actually include result_of.hpp if the compiler
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    45
// really does support it, otherwise we just get endless errors...
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    46
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    47
#include <boost/utility/result_of.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    48
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    49
namespace std{ namespace tr1{
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    50
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    51
   using ::boost::result_of;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    52
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    53
} }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    54
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    55
#endif // BOOST_HAS_TR1_RESULT_OF
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    56
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    57
#ifndef BOOST_HAS_TR1_MEM_FN
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    58
// mem_fn:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    59
#include <boost/mem_fn.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    60
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    61
namespace std{ namespace tr1{
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    62
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    63
using boost::mem_fn;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    64
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    65
} }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    66
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    67
#endif // BOOST_HAS_TR1_MEM_FN
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    68
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    69
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    70
#ifndef BOOST_HAS_TR1_BIND
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    71
// Bind:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    72
#include <boost/bind.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    73
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    74
namespace std{ namespace tr1{
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    75
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    76
   using ::boost::is_bind_expression;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    77
   using ::boost::is_placeholder;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    78
   using ::boost::bind;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    79
   namespace placeholders {
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    80
#ifndef BOOST_BIND_NO_PLACEHOLDERS
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    81
      using ::_1;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    82
      using ::_2;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    83
      using ::_3;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    84
      using ::_4;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    85
      using ::_5;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    86
      using ::_6;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    87
      using ::_7;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    88
      using ::_8;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    89
      using ::_9;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    90
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    91
   } // placeholders
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    92
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    93
} }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    94
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    95
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    96
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    97
#ifndef BOOST_HAS_TR1_FUNCTION
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    98
// polymorphic function object wrappers:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    99
#include <boost/function.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   100
#include <boost/detail/workaround.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   101
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   102
#if !BOOST_WORKAROUND(__BORLANDC__, < 0x582) \
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   103
    && !BOOST_WORKAROUND(BOOST_MSVC, < 1310) \
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   104
    && !defined(BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   105
namespace std{ namespace tr1{
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   106
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   107
   using ::boost::bad_function_call;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   108
   using ::boost::function;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   109
   using ::boost::swap;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   110
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   111
}}
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   112
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   113
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   114
#endif // BOOST_HAS_TR1_FUNCTION
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   115
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   116
#ifndef BOOST_HAS_TR1_HASH
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   117
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   118
// This header can get included by boost/hash.hpp
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   119
// leading to cyclic dependencies.  As a workaround
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   120
// we forward declare boost::hash and include
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   121
// the actual header later.
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   122
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   123
namespace boost{
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   124
template <class T> struct hash;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   125
}
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   126
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   127
namespace std{ namespace tr1{
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   128
   using ::boost::hash;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   129
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   130
}}
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   131
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   132
#include <boost/functional/hash.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   133
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   134
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   135
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   136
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   137