Boost logo

Boost Users :

Subject: Re: [Boost-users] Comparing two vectors element by element
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2008-09-10 08:15:25


Sean Farrow wrote:
> Hi Gevorg:
> In this case it's the second, for more background for interest:
> Each vector represents a braille cell.
> A braille cell has 6 dots hence the std::bitset<6> so:
> A vector can have up to 6 bitsets, each bitset represents one dots
> state.
> Hth.
> Sean.

Ok, what happens when a vector having 4 bitsets is compared with one having 6:

- 4 bitsets of the first vector are compared with the first 4 bitsets of the second vector, ignoring last 2 elements?
- The first vector is considered the lesser because it has fewer elements?
- Is this not allowed?
- something else?

Best Regards,
Gevorg

      


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