File indexing completed on 2025-01-18 09:53:11
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BOOST_TT_IS_STATELESS_HPP_INCLUDED
0010 #define BOOST_TT_IS_STATELESS_HPP_INCLUDED
0011
0012 #include <boost/type_traits/has_trivial_constructor.hpp>
0013 #include <boost/type_traits/has_trivial_copy.hpp>
0014 #include <boost/type_traits/has_trivial_destructor.hpp>
0015 #include <boost/type_traits/is_class.hpp>
0016 #include <boost/type_traits/is_empty.hpp>
0017 #include <boost/config.hpp>
0018
0019 namespace boost {
0020
0021 template <typename T>
0022 struct is_stateless
0023 : public integral_constant<bool,
0024 (::boost::has_trivial_constructor<T>::value
0025 && ::boost::has_trivial_copy<T>::value
0026 && ::boost::has_trivial_destructor<T>::value
0027 && ::boost::is_class<T>::value
0028 && ::boost::is_empty<T>::value)>
0029 {};
0030
0031 }
0032
0033 #endif