|
-
June 21st, 2009, 05:06 PM
#1
question about boost tuple and template
Dear all,
I have the problem:
vec1 is of the type vector<boost::tuple<int, double>>
vec2 is of the type vector<boost::tuple<int, double, double>>
vec3 is of the type vector<boost::tuple<int, double, string>>
I have to write a template with name columnViewOfTuple such that
columnViewOfTuple<0>(vec1)
columnViewOfTuple<1>(vec1)
columnViewOfTuple<0>(vec2)
columnViewOfTuple<1>(vec2)
columnViewOfTuple<2>(vec2)
columnViewOfTuple<1>(vec3)
columnViewOfTuple<2>(vec3)
returns the view of the specified column.
Can anybody give me some clues?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|