SyTen

◆ transV2S()

template<typename Type >
std::vector<Sector> syten::transV2S ( Type &&  v)
inline

Transforms an iterable of types implicitly convertible into Sector into a vector of sectors.

Mainly useful with kronVector(), which creates a std::vector<std::vector<Rep>>. The inner std::vector<Rep> is implicitly convertible to Sector, but the wrapping into another std::vector of course blocks that. Calling transV2S() on the result of kronVector() will give the proper thing.

References std::vector< T >::push_back().

+ Here is the call graph for this function: