Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------
- push 444, 555, 666, 777 and 888
- 444
- 555
- 666
- 777
- 888
- -------------------
- vector_is_storing_array : 0
- -------------------
- remove index(1)=555
- 444
- 666
- 777
- 888
- -------------------
- push 555 and 999
- 444
- 666
- 777
- 888
- 555
- 999
- -------------------
- set index(3)=888 -> index(3)=1888
- 444
- 666
- 777
- 1888
- 555
- 999
- -------------------
- remove index(5)=999, index(4)=555, index(2)=777, index(1)=666 and index(0)=444
- 1888
- -------------------
- remove index(0)=1888 | vector is free
- -------------------
- the vector is null
- -------------------
- push array(444), array(555), array(666), array(777) and array(888)
- size(8)
- 444
- 444
- 444
- 444
- 444
- 444
- 444
- 444
- size(4)
- 555
- 555
- 555
- 555
- size(16)
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- size(2)
- 777
- 777
- size(8)
- 888
- 888
- 888
- 888
- 888
- 888
- 888
- 888
- -------------------
- vector_is_storing_array : 1
- -------------------
- remove index(1)=array(555)
- size(8)
- 444
- 444
- 444
- 444
- 444
- 444
- 444
- 444
- size(16)
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- size(2)
- 777
- 777
- size(8)
- 888
- 888
- 888
- 888
- 888
- 888
- 888
- 888
- -------------------
- push array(999) and array(555)
- size(8)
- 444
- 444
- 444
- 444
- 444
- 444
- 444
- 444
- size(16)
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- size(2)
- 777
- 777
- size(8)
- 888
- 888
- 888
- 888
- 888
- 888
- 888
- 888
- size(4)
- 999
- 999
- 999
- 999
- size(4)
- 555
- 555
- 555
- 555
- -------------------
- set index(2)=array(777) -> index(2)=array(222)
- size(8)
- 444
- 444
- 444
- 444
- 444
- 444
- 444
- 444
- size(16)
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- 666
- size(8)
- 222
- 222
- 222
- 222
- 222
- 222
- 222
- 222
- size(8)
- 888
- 888
- 888
- 888
- 888
- 888
- 888
- 888
- size(4)
- 999
- 999
- 999
- 999
- size(4)
- 555
- 555
- 555
- 555
- -------------------
- remove index(5)=array(555), index(4)=array(999), index(2)=array(222), index(1)=array(666) and index(0)=array(444)
- size(8)
- 888
- 888
- 888
- 888
- 888
- 888
- 888
- 888
- -------------------
- remove index(0)=array(888) | vector is free
- -------------------
- the vector is null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement