473,378 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

where is the definition?

hi, all
i looked through <stl_deque.hfor some reason, but i can not find the
definition of the method `erase()', there are just two declaration:
//----------------------------------
iterator
erase(iterator __first, iterator __last);

iterator
erase(iterator __position);
//----------------------------------

where is the definition?

thanks,
Jim
Sep 23 '08 #1
3 1168
On Sep 23, 11:53*am, "Jim Z. Shi" <ji...@cisco.comwrote:
where is the definition?
Depends on the compiler. The definition can be in a precompiled
library or in a seperate source file.
Sep 23 '08 #2
On Sep 23, 3:44 pm, Tonni Tielens <tonnitiel...@gmail.comwrote:
On Sep 23, 11:53 am, "Jim Z. Shi" <ji...@cisco.comwrote:
where is the definition?
Depends on the compiler. The definition can be in a
precompiled library or in a seperate source file.
Or built into the compiler, or in a database somewhere, or
whatever the implementation wants. The name of the file he gave
reminds me of g++, however, where the standard library is in
files, with most of the actual code in a sub-directory bits,
with the class definitions and inline functions in .h files and
the template implementations in .tcc files. If the original
poster is asking about g++, given that there is a file
bits/deque.tcc, that's where I'd look.

More generally, if I want to find out about the actual contents
of a header, I'll write a one line program which includes it;
most compilers have an option which will generate the
preprocessor output (usually -E or /E), which will contain the
code (with all macros expanded) and #line declarations
specifying where it comes from.

--
James Kanze (GABI Software) email:ja*********@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

Sep 24 '08 #3


James Kanze wrote:
On Sep 23, 3:44 pm, Tonni Tielens <tonnitiel...@gmail.comwrote:
>On Sep 23, 11:53 am, "Jim Z. Shi" <ji...@cisco.comwrote:
More generally, if I want to find out about the actual contents
of a header, I'll write a one line program which includes it;
most compilers have an option which will generate the
preprocessor output (usually -E or /E), which will contain the
code (with all macros expanded) and #line declarations
specifying where it comes from.
:)

this helps a lot.

thanks,
Jim
Sep 25 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

47
by: Andrey Tatarinov | last post by:
Hi. It would be great to be able to reverse usage/definition parts in haskell-way with "where" keyword. Since Python 3 would miss lambda, that would be extremly useful for creating readable...
2
by: urocrane | last post by:
i'm using visual c++ and it doesn't seem to have graphics header file. where can i get it? i've always had a wierd thought about prototypes, do you really need them? in my case, i think it looks...
36
by: Jack Hughes | last post by:
This argument has come up two or three times lately. We have a web standards document at our company that say "Use valid HTML 4; We don't recommend switching to DIV-based CSS-P for layout just...
2
by: cppaddict | last post by:
Hi, The question of where to define operator< came up when I was using the std::sort method. Let's say I have a container whose members (of class A) I need to sort. In particular, we have some...
3
by: Tony Johansson | last post by:
Hello! I have these two statements typedef const char *enum_txt; and enum_txt phase_tab ={"IDLE","LAUNCHING","LAUNCHED","ROLLING","BOOSTERRELEASE","SPACE"}; where in the class definition...
3
by: btober | last post by:
After I execute a command like CREATE TYPE employee_wage_journal_sum AS (supplier_pk integer, employee_pk integer, hourly_dollars double precision, annual_dollars double precision); where...
3
by: S | last post by:
I'm having a problem attaching a name space. I'm getting an xml string of information as a result of a third party web service. I can't change the format of the string. The xml file looks like...
3
by: wende | last post by:
1. #define MA \ .... { i = j; } .... 2
23
by: rohit | last post by:
Hi, In my couple of years of experience, I have never found a single instance where I needed to use unions and bitfields(though I have used structures).I was just imagining where would these find...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.