Sha256: a9b3eddfe41b275f7828671b4f1ffa7e24a66b482d4394a683c9140b4236b88e

Contents?: true

Size: 1.89 KB

Versions: 20

Compression:

Stored size: 1.89 KB

Contents

//  (C) Copyright 2009-2011 Frederic Bron.
//
//  Use, modification and distribution are subject to the Boost Software License,
//  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt).
//
//  See http://www.boost.org/libs/type_traits for most recent version including documentation.

#ifndef BOOST_TT_HAS_POST_DECREMENT_HPP_INCLUDED
#define BOOST_TT_HAS_POST_DECREMENT_HPP_INCLUDED

#include <boost/type_traits/is_array.hpp>

#define BOOST_TT_TRAIT_NAME has_post_decrement
#define BOOST_TT_TRAIT_OP --
#define BOOST_TT_FORBIDDEN_IF\
   (\
      /* bool */\
      ::boost::is_same< bool, Lhs_nocv >::value || \
      /* void* */\
      (\
         ::boost::is_pointer< Lhs_noref >::value && \
         ::boost::is_void< Lhs_noptr >::value\
      ) || \
      /* (fundamental or pointer) and const */\
      (\
         ( \
            ::boost::is_fundamental< Lhs_nocv >::value || \
            ::boost::is_pointer< Lhs_noref >::value\
         ) && \
         ::boost::is_const< Lhs_noref >::value\
      )||\
      /* Arrays */ \
      ::boost::is_array<Lhs_noref>::value\
      )


#include <boost/type_traits/detail/has_postfix_operator.hpp>

#undef BOOST_TT_TRAIT_NAME
#undef BOOST_TT_TRAIT_OP
#undef BOOST_TT_FORBIDDEN_IF

#if defined(BOOST_TT_HAS_ACCURATE_BINARY_OPERATOR_DETECTION)

namespace boost {

   template <class R>
   struct has_post_decrement<bool, R> : public false_type {};
   template <>
   struct has_post_decrement<bool, boost::binary_op_detail::dont_care> : public false_type {};
   template <>
   struct has_post_decrement<bool, void> : public false_type {};

   template <class R>
   struct has_post_decrement<bool&, R> : public false_type {};
   template <>
   struct has_post_decrement<bool&, boost::binary_op_detail::dont_care> : public false_type {};
   template <>
   struct has_post_decrement<bool&, void> : public false_type {};

}

#endif
#endif

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
passenger-6.0.24 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.23 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.20 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.19 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.18 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.17 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.16 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.15 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.14 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.13 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.12 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.11 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.10 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.9 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.8 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.4 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp
passenger-6.0.3 src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp