File indexing completed on 2025-01-18 09:37:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_HANA_CONCEPT_COMONAD_HPP
0011 #define BOOST_HANA_CONCEPT_COMONAD_HPP
0012
0013 #include <boost/hana/fwd/concept/comonad.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/duplicate.hpp>
0020 #include <boost/hana/extend.hpp>
0021 #include <boost/hana/extract.hpp>
0022
0023
0024 namespace boost { namespace hana {
0025 template <typename W>
0026 struct Comonad
0027 : hana::integral_constant<bool,
0028 !is_default<extract_impl<typename tag_of<W>::type>>::value &&
0029 (!is_default<duplicate_impl<typename tag_of<W>::type>>::value ||
0030 !is_default<extend_impl<typename tag_of<W>::type>>::value)
0031 >
0032 { };
0033 }}
0034
0035 #endif