Re: Locating build-in functions
On May 3, 10:27 pm, desktop <f...@sss.com> wrote:
Marcus Kwok wrote:
desktop <f...@sss.com> wrote:
I am trying to find the build-in function find() in the C++ STD but I
don't know where to look. Where are the standard library functions loc=
ated?
std::find() is in <algorithm>.
But where is that located?
In the standard library. If you invoke the compiler as a C++
compiler, and it is correctly installed, the compiler usually
takes care of the rest of the details. (The one exception I've
encountered is VC++, where you have to set environment variables
such as %INCLUDE% to tell the compiler where things are.)
The reference I usually use for the Standard Library is Dinkumware's:
http://www.dinkumware.com/manuals/
But it seems that they only show the declarations and not the whole
definition.
So? That's not your problem. The definition may change from
one implementation to the next anyway. (I don't know about
std::find, but the definitions of things like std::vector
definitly change, even depending on compiler options.)
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34