Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > What does it mean const() after function declaration

Reply
Thread Tools

What does it mean const() after function declaration

 
 
elviin@gmail.com
Guest
Posts: n/a
 
      05-16-2005
Hello.

I'd like to know what means const() in the following declaration

T & operator[](std:trdiff_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?

elviin

 
Reply With Quote
 
 
 
 
Rolf Magnus
Guest
Posts: n/a
 
      05-16-2005
wrote:

> Hello.
>
> I'd like to know what means const() in the following declaration
>
> T & operator[](std:trdiff_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:trdiff_t i) const; // never throws
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what does this friend declaration mean ??? hsharsha@gmail.com C++ 2 02-14-2006 07:20 AM
what does const mean when it comes *after* the function definition alexl C++ 14 10-13-2005 03:21 PM
"virtual outside class declaration" and "declaration does not declare anything" kelvSYC C++ 6 05-17-2005 08:58 AM
what does this declaration mean? franco ziade C Programming 4 02-17-2005 05:24 AM
Function declaration in class declaration Ovidesvideo C++ 4 12-10-2004 06:36 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57