annotate DEPENDENCIES/generic/include/boost/fusion/support/detail/access.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 /*=============================================================================
Chris@16 2 Copyright (c) 2001-2011 Joel de Guzman
Chris@16 3
Chris@101 4 Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 6 ==============================================================================*/
Chris@16 7 #if !defined(FUSION_ACCESS_04182005_0737)
Chris@16 8 #define FUSION_ACCESS_04182005_0737
Chris@16 9
Chris@101 10 #include <boost/fusion/support/config.hpp>
Chris@16 11 #include <boost/type_traits/add_const.hpp>
Chris@16 12 #include <boost/type_traits/add_reference.hpp>
Chris@16 13
Chris@16 14 namespace boost { namespace fusion { namespace detail
Chris@16 15 {
Chris@16 16 template <typename T>
Chris@16 17 struct ref_result
Chris@16 18 {
Chris@16 19 typedef typename add_reference<T>::type type;
Chris@16 20 };
Chris@16 21
Chris@16 22 template <typename T>
Chris@16 23 struct cref_result
Chris@16 24 {
Chris@101 25 typedef typename
Chris@16 26 add_reference<
Chris@16 27 typename add_const<T>::type
Chris@101 28 >::type
Chris@16 29 type;
Chris@16 30 };
Chris@16 31
Chris@16 32 template <typename T>
Chris@16 33 struct call_param
Chris@16 34 {
Chris@16 35 typedef T const& type;
Chris@16 36 };
Chris@16 37
Chris@16 38 template <typename T>
Chris@101 39 struct call_param<T&>
Chris@16 40 {
Chris@16 41 typedef T& type;
Chris@16 42 };
Chris@16 43
Chris@16 44 template <typename T>
Chris@16 45 struct call_param<T const>
Chris@16 46 {
Chris@16 47 typedef T const& type;
Chris@16 48 };
Chris@16 49
Chris@16 50 template <typename T>
Chris@16 51 struct call_param<T volatile>
Chris@16 52 {
Chris@16 53 typedef T const& type;
Chris@16 54 };
Chris@16 55
Chris@16 56 template <typename T>
Chris@16 57 struct call_param<T const volatile>
Chris@16 58 {
Chris@16 59 typedef T const& type;
Chris@16 60 };
Chris@16 61
Chris@16 62 }}}
Chris@16 63
Chris@16 64 #endif
Chris@16 65