2 #include "common/common.hpp"
3 #include "canvas/selectables.hpp"
8 inline auto sel_filter_type(ObjectType type)
13 template <
typename Tk,
typename Tv>
auto map_ptr_from_sel(std::map<Tk, Tv> &m)
15 return [&m](
const SelectableRef &x) {
return &m.at(x.uuid); };
19 template <
typename Tk,
typename Tv>
auto map_ref_from_sel(std::map<Tk, Tv> &m)
24 template <
typename Tr,
typename Tp>
auto find_if_ptr(Tr &&
range, Tp pred)
28 return static_cast<decltype(&*x)
>(
nullptr);
CPP_concept type
\concept type
Definition: concepts.hpp:838
CPP_concept range
\concept range
Definition: concepts.hpp:69
_t< detail::find_if_< L, Fn > > find_if
Return the tail of the list L starting at the first element A such that invoke<Fn,...
Definition: meta.hpp:2506