私は deque を持っていて、それを逆方向に繰り返したいと思っています。インデックスも必要です(そうでなければreverse_iteratorを使用します)ので、試しました:
if ( _children.size( ) > 0 ) // debugging purpose
{
unsigned si( _children.size( ) ); // debugging purpose
int s( _children.size( ) - 1 ); // debugging purpose
for ( unsigned c ( 0 ) ; c < _children.size( ) ; ++c )
if ( this->_children[ ( _children.size( ) - 1 ) - c ]->Topmost( ) &&
this->_children[ ( _children.size( ) - 1 ) - c ]->BorderRectangle( ).IsIn( X , Y ) )
return std::pair< int, WindowPointer >( ( _children.size( ) - 1 ) - c, this->_children[ ( _children.size( ) - 1 ) - c ]->WindowAt( x, y ) );
しかし、私はsigsevを取得します。デバッグ後、インデックスが -65 であることがわかりました。私は _children.size( ) をチェックしました
unsigned si = _children.size( );
それは 4294967232 です。
long s = _children.size( ) - 1;
-65です。どうすればそのような値を取得できますか? そして、これを修正する方法は?