annotate DEPENDENCIES/generic/include/boost/numeric/odeint/util/unwrap_reference.hpp @ 76:e58ce2aebd18 emscripten

Merge from default branch
author Chris Cannam
date Thu, 30 Oct 2014 13:25:25 +0000
parents 2665513ce2d3
children c530137014c0
rev   line source
Chris@16 1 /*
Chris@16 2 [auto_generated]
Chris@16 3 boost/numeric/odeint/util/unwrap_reference.hpp
Chris@16 4
Chris@16 5 [begin_description]
Chris@16 6 unwrap_reference
Chris@16 7 [end_description]
Chris@16 8
Chris@16 9 Copyright 2009-2011 Karsten Ahnert
Chris@16 10 Copyright 2009-2011 Mario Mulansky
Chris@16 11
Chris@16 12 Distributed under the Boost Software License, Version 1.0.
Chris@16 13 (See accompanying file LICENSE_1_0.txt or
Chris@16 14 copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 15 */
Chris@16 16
Chris@16 17
Chris@16 18 #ifndef BOOST_NUMERIC_ODEINT_UTIL_UNWRAP_REFERENCE_HPP_INCLUDED
Chris@16 19 #define BOOST_NUMERIC_ODEINT_UTIL_UNWRAP_REFERENCE_HPP_INCLUDED
Chris@16 20
Chris@16 21
Chris@16 22 #include <boost/numeric/odeint/config.hpp>
Chris@16 23
Chris@16 24
Chris@16 25 #if BOOST_NUMERIC_ODEINT_CXX11
Chris@16 26 #include <functional>
Chris@16 27 #else
Chris@16 28 #include <boost/ref.hpp>
Chris@16 29 #endif
Chris@16 30
Chris@16 31 namespace boost {
Chris@16 32
Chris@16 33 #if BOOST_NUMERIC_ODEINT_CXX11
Chris@16 34 template<typename T> class reference_wrapper;
Chris@16 35
Chris@16 36 template<typename T> class unwrap_reference;
Chris@16 37 #endif
Chris@16 38
Chris@16 39 namespace numeric {
Chris@16 40 namespace odeint {
Chris@16 41
Chris@16 42
Chris@16 43 #if BOOST_NUMERIC_ODEINT_CXX11
Chris@16 44
Chris@16 45 template<typename T>
Chris@16 46 struct unwrap_reference
Chris@16 47 {
Chris@16 48 typedef typename std::remove_reference<T>::type type;
Chris@16 49 };
Chris@16 50
Chris@16 51 template<typename T>
Chris@16 52 struct unwrap_reference< std::reference_wrapper<T> >
Chris@16 53 {
Chris@16 54 typedef typename std::remove_reference<T>::type type;
Chris@16 55 };
Chris@16 56
Chris@16 57 template<typename T>
Chris@16 58 struct unwrap_reference< boost::reference_wrapper<T> >
Chris@16 59 {
Chris@16 60 typedef typename boost::unwrap_reference<T>::type type;
Chris@16 61 };
Chris@16 62
Chris@16 63 #else
Chris@16 64
Chris@16 65 using ::boost::unwrap_reference;
Chris@16 66
Chris@16 67 #endif
Chris@16 68
Chris@16 69 namespace detail
Chris@16 70 {
Chris@16 71
Chris@16 72 #if BOOST_NUMERIC_ODEINT_CXX11
Chris@16 73
Chris@16 74 using ::std::ref;
Chris@16 75
Chris@16 76 #else
Chris@16 77
Chris@16 78 using ::boost::ref;
Chris@16 79
Chris@16 80 #endif
Chris@16 81 }
Chris@16 82
Chris@16 83 }
Chris@16 84 }
Chris@16 85 }
Chris@16 86
Chris@16 87 #endif // BOOST_NUMERIC_ODEINT_UTIL_UNWRAP_REFERENCE_HPP_INCLUDED