[Solved] Passing a std::pair templated with two template arguments as a parameter [closed]


When two “>” characters are near each other, they need a space in between so that it is not interpreted as the “>>” operator. After doing that change, the prototype compiles.

#include <iostream>
#include <vector>
#include <iostream>

template <typename T, typename Q>
std::vector<std::pair<T, Q> > sortPairIntoVector(
    std::pair<T,Q>, std::vector<std::pair<T, Q> >);
template <typename T, typename Q>
std::vector<std::pair<T, Q> > sortPairIntoVector(
    std::pair<T, Q>, std::vector<std::pair<T, Q> >) {

}

int main() {
}

2

solved Passing a std::pair templated with two template arguments as a parameter [closed]