MCPcopy Create free account
hub / github.com/Dobiasd/FunctionalPlus / separate

Function separate

include/fplus/split.hpp:757–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755template <typename ContainerIn,
756 typename ContainerOut = typename std::vector<ContainerIn>>
757ContainerOut separate(const ContainerIn& xs)
758{
759 static_assert(std::is_same<ContainerIn,
760 typename ContainerOut::value_type>::value,
761 "Containers do not match.");
762 typedef typename ContainerIn::value_type T;
763 return separate_on(identity<T>, xs);
764}
765
766} // namespace fplus

Callers 1

Calls 1

separate_onFunction · 0.70

Tested by

no test coverage detected