|
Boost Users : |
Subject: Re: [Boost-users] Boost qi parser
From: Igor R (boost.lists_at_[hidden])
Date: 2014-03-02 08:22:08
>>> {
>>> name = "new"
>>> sub_name = "SUBTITLE"
>>> values = { 1, 2, 3; }
>>> input_values = { 1, 2, 3; 5, 5, 6 10, 12, 3}
>>> type = input
>>> intval = 100
>>> }
>>>
>>
>
>
> Where mapdef is :: typedef
> std::vector<std::pair<std::string,std::string>>mapDef;
>
> I am looking to store key vs values.. means [ignoring \n, \t and spaces]
> Name-³new²
> Values- 1,2,3
> input_values-1, 2, 3; 5, 5, 6;10, 12, 3
I still don't quite realise what you mean.
For the above specific example, how would you store every key/value in
vector<pair<string, string>>? Please, fill the following:
int main()
{
vector<pair<string, string>> output;
output.push_back(make_pair(?, ?));
}
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net