Begin() applied on empty Vector returns NULL or non null value????

Discussion in 'C++' started by Col, Apr 21, 2006.

  1. Col

    Col Guest

    Begin() method applied on empty Vector returns NULL or non null
    value????

    Plz help!!!

    Thanks&regards,
    COL
     
    Col, Apr 21, 2006
    #1
    1. Advertising

  2. Col

    peter koch Guest

    Col wrote:
    > Begin() method applied on empty Vector returns NULL or non null
    > value????


    On an empty vector, begin() returns the same value as end(). This is
    what you should compare to - not 0.

    /Peter
    >
    > Plz help!!!
    >
    > Thanks&regards,
    > COL
     
    peter koch, Apr 21, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. vizlab
    Replies:
    3
    Views:
    4,214
    Michael Bar-Sinai
    Oct 17, 2007
  2. John

    empty/non-empty element

    John, Jul 15, 2003, in forum: XML
    Replies:
    1
    Views:
    1,036
    Klaus Johannes Rusch
    Jul 16, 2003
  3. Old Wolf
    Replies:
    3
    Views:
    583
    Clark S. Cox III
    Mar 3, 2005
  4. Replies:
    8
    Views:
    1,932
    Csaba
    Feb 18, 2006
  5. suzaku
    Replies:
    0
    Views:
    161
    suzaku
    Dec 15, 2012
Loading...

Share This Page