File indexing completed on 2025-01-30 09:43:11
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_HANA_CONCEPT_EUCLIDEAN_RING_HPP
0011 #define BOOST_HANA_CONCEPT_EUCLIDEAN_RING_HPP
0012
0013 #include <boost/hana/fwd/concept/euclidean_ring.hpp>
0014
0015 #include <boost/hana/config.hpp>
0016 #include <boost/hana/core/default.hpp>
0017 #include <boost/hana/core/tag_of.hpp>
0018 #include <boost/hana/detail/integral_constant.hpp>
0019 #include <boost/hana/div.hpp>
0020 #include <boost/hana/mod.hpp>
0021
0022
0023 namespace boost { namespace hana {
0024 template <typename R>
0025 struct EuclideanRing
0026 : hana::integral_constant<bool,
0027 !is_default<mod_impl<typename tag_of<R>::type,
0028 typename tag_of<R>::type>>::value &&
0029 !is_default<div_impl<typename tag_of<R>::type,
0030 typename tag_of<R>::type>>::value
0031 >
0032 { };
0033 }}
0034
0035 #endif