// (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000. // 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_TRIVIAL_COPY_HPP_INCLUDED #define BOOST_TT_HAS_TRIVIAL_COPY_HPP_INCLUDED #include // size_t #include #include #include #if (defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 409)) || defined(BOOST_CLANG) || (defined(__SUNPRO_CC) && defined(BOOST_HAS_TRIVIAL_COPY)) #include #define BOOST_TT_TRIVIAL_CONSTRUCT_FIX && is_copy_constructible::value #else #define BOOST_TT_TRIVIAL_CONSTRUCT_FIX #endif #ifdef BOOST_INTEL #include #include #endif namespace boost { template struct has_trivial_copy : public integral_constant::value #endif >{}; // Arrays are not explicitly copyable: template struct has_trivial_copy : public false_type{}; template struct has_trivial_copy : public false_type{}; // Are volatile types ever trivial? We don't really know, so assume not: template struct has_trivial_copy : public false_type{}; template <> struct has_trivial_copy : public false_type{}; #ifndef BOOST_NO_CV_VOID_SPECIALIZATIONS template <> struct has_trivial_copy : public false_type{}; template <> struct has_trivial_copy : public false_type{}; template <> struct has_trivial_copy : public false_type{}; #endif template struct has_trivial_copy : public false_type{}; #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) template struct has_trivial_copy : public false_type{}; #endif template struct has_trivial_copy_constructor : public has_trivial_copy{}; #undef BOOST_TT_TRIVIAL_CONSTRUCT_FIX } // namespace boost #endif // BOOST_TT_HAS_TRIVIAL_COPY_HPP_INCLUDED