Maximum size of std::string

Discussion in 'C++' started by AkeemBoy, Jan 18, 2005.

  1. AkeemBoy

    AkeemBoy Guest

    Hi,

    What is the maximum length of a std::string ? I can't seem to find
    anything in any reference manual I have.
     
    AkeemBoy, Jan 18, 2005
    #1
    1. Advertising

  2. AkeemBoy

    Rolf Magnus Guest

    AkeemBoy wrote:

    > Hi,
    >
    > What is the maximum length of a std::string ? I can't seem to find
    > anything in any reference manual I have.


    Then you should get a better manual. Every container (including std::string)
    has a member function max_size().
     
    Rolf Magnus, Jan 18, 2005
    #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. Peter Jansson
    Replies:
    5
    Views:
    6,317
    Ivan Vecerina
    Mar 17, 2005
  2. Fei Liu
    Replies:
    9
    Views:
    447
  3. Jeffrey Walton
    Replies:
    10
    Views:
    943
    Mathias Gaunard
    Nov 26, 2006
  4. Christopher Pisz
    Replies:
    11
    Views:
    536
    James Kanze
    Jan 13, 2008
  5. phanhuyich
    Replies:
    4
    Views:
    278
Loading...

Share This Page