What does it mean const() after function declaration

Discussion in 'C++' started by elviin@gmail.com, May 16, 2005.

  1. Guest

    , May 16, 2005
    #1
    1. Advertising

  2. Rolf Magnus Guest

    wrote:

    > Hello.
    >
    > I'd like to know what means const() in the following declaration
    >
    > T & operator[](std::ptrdiff_t i) const() const;
    >
    > I've been looking on
    >
    > http://boost.org/libs/smart_ptr/shared_array.htm
    >
    > It seems to be a typo.. am I right?


    I guess so. If you click on it, you get to the detailed description, where
    it's just:

    T & operator[](std::ptrdiff_t i) const; // never throws
    Rolf Magnus, May 16, 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. franco ziade

    what does this declaration mean?

    franco ziade, Feb 17, 2005, in forum: C Programming
    Replies:
    4
    Views:
    388
    Andrey Tarasevich
    Feb 17, 2005
  2. s88
    Replies:
    2
    Views:
    885
  3. Alexander Farber
    Replies:
    0
    Views:
    452
    Alexander Farber
    Jun 21, 2005
  4. alexl
    Replies:
    14
    Views:
    669
    Default User
    Oct 13, 2005
  5. Javier
    Replies:
    2
    Views:
    561
    James Kanze
    Sep 4, 2007
Loading...

Share This Page