I understood how to create my own range-v3 views using view-facade
, but now I would like to create my own container so I can use in-place-mutating actions
:
MyContainer<ItemType> list = createList();
list |= ranges::actions::transform(&someMappingFunction);
Unfortunately, there seems to be no simple helper like a container-facade
and my C++ skills are not mad enough yet to understand the range-v3 source by just reading it. Which interface does my container need to implement, or what does it need to be derived from?
Thanks for any hints!