Thread: stl string overloaded operators

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2010
    Location
    Rochester, NY
    Posts
    196

    stl string overloaded operators

    Hey,

    I don't typically use C++, I'm more of a C guy, but when using stl strings (std::string), as far as the == operator goes.

    I go here for all my references for C++ and C.
    cplusplus.com - The C++ Resources Network

    I'm sure many others do, too. But it doesn't list == as an overloaded operator, with the semantics of .compare(). Though == works, apparently.

    Did cplusplus.com just forget it or something?? Is it not officially part of the STL spec? What gives?

    EDIT:
    Forgot to say, thanks in advance.

    Also, I know there's others like gotapi.com and cppreference.com - I just typically used cplusplus.com and was wondering if there was a particular (obvious) reason why it wasn't there..
    Last edited by Syndacate; 12-11-2010 at 02:03 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Unable to compare string with 'getter' returned string.
    By Swerve in forum C++ Programming
    Replies: 2
    Last Post: 10-30-2009, 05:56 PM
  2. Inheritance Hierarchy for a Package class
    By twickre in forum C++ Programming
    Replies: 7
    Last Post: 12-08-2007, 04:13 PM
  3. String Class
    By BKurosawa in forum C++ Programming
    Replies: 117
    Last Post: 08-09-2007, 01:02 AM
  4. String Class Operations
    By Aidman in forum C++ Programming
    Replies: 10
    Last Post: 04-06-2003, 02:29 PM
  5. "Operator must be a member function..." (Error)
    By Magos in forum C++ Programming
    Replies: 16
    Last Post: 10-28-2002, 02:54 PM