mardi 24 mai 2016

Insert to std::vector of string, list pair

I want to add elements into std::vector<std::pair<std::string, std::list<std::string>> > m_Vec;

with a function like

void setVec(const std::string &node, const std::string &value) 
{
    m_Vec.emplace_back(node, ???);    
}

How can I insert the list string values to my vector of pairs?

Aucun commentaire:

Enregistrer un commentaire