26 #ifndef MLN_SET_UNI_HH
27 # define MLN_SET_UNI_HH
36 # include <mln/core/site_set/p_set.hh>
37 # include <mln/convert/from_to.hh>
38 # include <mln/util/ord.hh>
51 template <
typename Sl,
typename Sr>
53 uni(
const Site_Set<Sl>& lhs,
const Site_Set<Sr>&
rhs);
56 # ifndef MLN_INCLUDE_ONLY
58 template <
typename Sl,
typename Sr>
61 uni(
const Site_Set<Sl>& lhs,
const Site_Set<Sr>&
rhs)
63 mln_trace(
"set::uni");
65 typedef mln_site(Sl) P;
66 mlc_converts_to(mln_psite(Sr), P)::check();
67 std::set< P, util::ord<P> > sl, sr, su;
70 std::set_union(sl.begin(), sl.end(),
72 std::inserter(su, su.begin()),
80 # endif // ! MLN_INCLUDE_ONLY
87 #endif // ! MLN_SET_UNI_HH