annotate DEPENDENCIES/generic/include/boost/fusion/container/generation/pair_tie.hpp @ 120:4729c8589274 emscripten-piper

Add piper builds
author Chris Cannam
date Fri, 11 Nov 2016 15:49:32 +0000
parents c530137014c0
children
rev   line source
Chris@16 1 /*=============================================================================
Chris@16 2 Copyright (c) 2001-2011 Joel de Guzman
Chris@16 3 Copyright (c) 2006 Dan Marsden
Chris@16 4
Chris@16 5 Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 7 ==============================================================================*/
Chris@16 8 #if !defined (BOOST_FUSION_PAIR_TIE_20060812_2058)
Chris@16 9 #define BOOST_FUSION_PAIR_TIE_20060812_2058
Chris@16 10
Chris@101 11 #include <boost/fusion/support/config.hpp>
Chris@16 12 #include <boost/type_traits/is_const.hpp>
Chris@16 13 #include <boost/utility/enable_if.hpp>
Chris@16 14
Chris@16 15 namespace boost { namespace fusion {
Chris@16 16
Chris@16 17 template<typename Key, typename T>
Chris@16 18 struct pair;
Chris@16 19
Chris@16 20 namespace result_of
Chris@16 21 {
Chris@16 22 template<typename Key, typename T>
Chris@16 23 struct pair_tie
Chris@16 24 {
Chris@16 25 typedef fusion::pair<Key, T&> type;
Chris@16 26 };
Chris@16 27 }
Chris@16 28
Chris@16 29 template<typename Key, typename T>
Chris@101 30 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
Chris@16 31 typename disable_if<is_const<T>, typename result_of::pair_tie<Key, T>::type>::type
Chris@16 32 pair_tie(T& t)
Chris@16 33 {
Chris@16 34 return typename result_of::pair_tie<Key, T>::type(t);
Chris@16 35 }
Chris@16 36
Chris@16 37 template<typename Key, typename T>
Chris@101 38 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
Chris@16 39 typename result_of::pair_tie<Key, T const>::type
Chris@16 40 pair_tie(T const& t)
Chris@16 41 {
Chris@16 42 return typename result_of::pair_tie<Key, T const>::type(t);
Chris@16 43 }
Chris@16 44 }}
Chris@16 45
Chris@16 46 #endif