Hi:
I need to compare two vectors. I already have a function to compare two
individual elements (std::bitsets) in this case. Can I use boost.foreach
to do this, or is there a better way.
I need to know whether vector one, is less than vector two.
STL defines different algorithms in <algorithm> header. There is an equal algorithm.
This is how to compare 2 vector instances if one is less than the other. I do not really understand your question about bitsets. Do you have vector of bitsets? If so, replace int in vector template instantiation with your bitset instantiation and less<int>() with the instance to your functor.