Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:36:55

0001 //
0002 // Copyright 2017-2019 Peter Dimov.
0003 //
0004 // Distributed under the Boost Software License, Version 1.0
0005 // See accompanying file LICENSE_1_0.txt or copy at
0006 // http://www.boost.org/LICENSE_1_0.txt
0007 //
0008 #ifndef BOOST_GIL_DETAIL_TYPE_TRAITS_HPP
0009 #define BOOST_GIL_DETAIL_TYPE_TRAITS_HPP
0010 
0011 #include <boost/config.hpp>
0012 
0013 #include <type_traits>
0014 
0015 namespace boost { namespace gil { namespace detail {
0016 
0017 #if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 50100
0018 
0019 template<class T>
0020 struct is_trivially_default_constructible
0021     : std::integral_constant
0022     <
0023         bool,
0024         std::is_default_constructible<T>::value &&
0025         std::has_trivial_default_constructor<T>::value
0026     >
0027 {};
0028 
0029 #else
0030 
0031 using std::is_trivially_default_constructible;
0032 
0033 #endif
0034 
0035 using std::is_trivially_destructible;
0036 
0037 }}} //namespace boost::gil::detail
0038 
0039 #endif