31 template <
typename Indexable>
41 template <
typename Indexable>
47 template <
typename Index>
48 void invert(std::vector<Index>& vec) {
49 std::vector<Index> inverse(vec.size());
50 for (
size_t i=0; i < vec.size(); i++) {
Generator object for a strided sequence of ints.
bool operator()(const I &lhs, const I &rhs)
Functor to get the first element of a pair. Use with STL functions like transform().
const Indexable & container
indexed_lt_functor< Indexable > indexed_lt(const Indexable &container)
P::first_type operator()(const P &pair)
P::second_type operator()(const P &pair)
void invert(std::vector< Index > &vec)
Functor to get the second element of a pair. Use with STL functions like transform().
indexed_lt_functor(const Indexable &c)
sequence(int _start=0, int _stride=1)