picking the correct row in a map <string, vector <string> >

Posted by Pavan Shah-2 on
URL: http://quantlib.414.s1.nabble.com/picking-the-correct-row-in-a-map-string-vector-string-tp13896.html

I have a map <string, vector <string> >  with hundreds of rows in it and several columns.
In other words, it looks like the following:

6567     12/20/2010    EUR  50000.58 12/20/2014
7894     12/20/2011    CAD 50000.58 12/20/2014
1237     12/20/2012    EUR  50000.58 12/20/2019
1237     12/20/2013    GBP  50000.58 12/20/2017
......................................................................
......................................................................
.......................................................................
1237     12/20/2013    GBP  50000.58 12/20/2017


the first column are my keys  but they are not in any order.  They are just random numbers stored as string.

I want to work with only rows that have a mapped value as  "EUR" in the 3rd column  and then pick out the last mapped value in that row (which is  a date) and pass this date to another function .

How do I do this ?

thanks
Pavan

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users