annotate DEPENDENCIES/generic/include/boost/fusion/support/as_const.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) 2012 Nathan Ridge
Chris@16 3
Chris@16 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 #ifndef BOOST_FUSION_SUPPORT_AS_CONST_HPP
Chris@16 8 #define BOOST_FUSION_SUPPORT_AS_CONST_HPP
Chris@16 9
Chris@101 10 #include <boost/config.hpp>
Chris@101 11 #include <boost/fusion/support/config.hpp>
Chris@101 12
Chris@16 13 namespace boost { namespace fusion { namespace extension
Chris@16 14 {
Chris@16 15 // A customization point that allows certain wrappers around
Chris@16 16 // Fusion sequence elements (e.g. adt_attribute_proxy) to be
Chris@16 17 // unwrapped in contexts where the element only needs to be
Chris@16 18 // read. The library wraps accesses to Fusion elements in
Chris@16 19 // such contexts with calls to this function. Users can
Chris@16 20 // specialize this function for their own wrappers.
Chris@16 21 template <typename T>
Chris@101 22 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
Chris@101 23 inline const T& as_const(const T& obj) BOOST_NOEXCEPT
Chris@16 24 {
Chris@16 25 return obj;
Chris@16 26 }
Chris@16 27
Chris@16 28 }}}
Chris@16 29
Chris@16 30 #endif