Connecting Tech Pros Worldwide Forums | Help | Site Map

C++ API

desktop
Guest
 
Posts: n/a
#1: Apr 23 '07
Is there an API like the one for java where its possible to see which
functions are on vector etc? I have tried to search teh FAQ and google
but have not found anything.

Victor Bazarov
Guest
 
Posts: n/a
#2: Apr 23 '07

re: C++ API


desktop wrote:
Quote:
Is there an API like the one for java where its possible to see which
functions are on vector etc? I have tried to search teh FAQ and google
but have not found anything.
No, there is no such API. We use manuals for that. And the word you
were looking for is "reflection".

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


Mark P
Guest
 
Posts: n/a
#3: Apr 23 '07

re: C++ API


desktop wrote:
Quote:
Is there an API like the one for java where its possible to see which
functions are on vector etc? I have tried to search teh FAQ and google
but have not found anything.
Try,

http://www.sgi.com/tech/stl/table_of_contents.html
http://www.dinkumware.com/manuals/default.aspx?Page=
Default User
Guest
 
Posts: n/a
#4: Apr 23 '07

re: C++ API


desktop wrote:
Quote:
Is there an API like the one for java where its possible to see which
functions are on vector etc? I have tried to search teh FAQ and
google but have not found anything.

I find it difficult to believe you found nothing with a google search.
I tried: C++ vector

First hit was:

<http://www.cppreference.com/cppvector/index.html>


Which seems to be a pretty decent reference, although I didn't look at
it extensively.




Brian
James Kanze
Guest
 
Posts: n/a
#5: Apr 24 '07

re: C++ API


On Apr 23, 4:37 pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
Quote:
desktop wrote:
Quote:
Is there an API like the one for java where its possible to see which
functions are on vector etc? I have tried to search teh FAQ and google
but have not found anything.
Quote:
No, there is no such API. We use manuals for that. And the word you
were looking for is "reflection".
It depends on what he's looking for. If it is documentation,
yes: we use manuals (on line or on paper), and so does Java.
And it's not called reflection. If it's runtime, then Java has
reflection (which I've generally heard called introspection
elsewhere), and C++ has no real equivalent. (typeinfo doesn't
give half the information you can get from Java's reflection.)
On the other hand, it's pretty simple to simulate some of the
more frequent uses.

--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Closed Thread