473,785 Members | 2,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

do you know good books/sites about creating custom allocators, streams and iterators?

for me, these items are in the 'tricky zone' of C++

does anyone know good material with that? (dealing with subtle
details, pitfalls, good practices...)

anything like the Effective series from Meyers would be fine ;)

thanks!

Diego
HP

Aug 27 '07 #1
11 2399
Diego Martins wrote:
for me, these items are in the 'tricky zone' of C++

does anyone know good material with that? (dealing with subtle
details, pitfalls, good practices...)
Have you perused "C++ Standard Library" by Josuttis? As for the
streams, there was a book by Angelika Langer and Klaus Kreft, I
heard good things about it. Dietmar Kuehl has also written on
the same or similar subject, IIRC.
anything like the Effective series from Meyers would be fine ;)
He's got some iterator tips in "Effective STL", check it out.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Aug 27 '07 #2
On 2007-08-27 19:21, Diego Martins wrote:
for me, these items are in the 'tricky zone' of C++

does anyone know good material with that? (dealing with subtle
details, pitfalls, good practices...)

anything like the Effective series from Meyers would be fine ;)
Don't know about custom allocators, since it's not something most C++
programmers have to write, but section 19.4 in TC++PL talks about it.

For streams and iterators any good book should do, iterators are central
to the standard library so a book that does not explain them would be
useless. Once again, TC++PL have chapters about those things.

--
Erik Wikström
Aug 27 '07 #3
On Aug 27, 2:29 pm, "Victor Bazarov" <v.Abaza...@com Acast.netwrote:
Diego Martins wrote:
for me, these items are in the 'tricky zone' of C++
does anyone know good material with that? (dealing with subtle
details, pitfalls, good practices...)

Have you perused "C++ Standard Library" by Josuttis?
yeah! I have this book. It is excellent as a STL containers and
algorithms reference guide

but it does not focus on custom streams, iterators and allocators :(
As for the
streams, there was a book by Angelika Langer and Klaus Kreft, I
heard good things about it. Dietmar Kuehl has also written on
the same or similar subject, IIRC.
nice! do you know the book names?
anything like the Effective series from Meyers would be fine ;)

He's got some iterator tips in "Effective STL", check it out.
I want more :(
(but the Effective series is a must have! I have only the Effective
STL in book, but I've read them all on my college library)

thanks, anyway
Diego

Aug 27 '07 #4
On Aug 27, 2:39 pm, Erik Wikström <Erik-wikst...@telia. comwrote:
On 2007-08-27 19:21, Diego Martins wrote:
for me, these items are in the 'tricky zone' of C++
does anyone know good material with that? (dealing with subtle
details, pitfalls, good practices...)
anything like the Effective series from Meyers would be fine ;)

Don't know about custom allocators, since it's not something most C++
programmers have to write, but section 19.4 in TC++PL talks about it.

For streams and iterators any good book should do, iterators are central
to the standard library so a book that does not explain them would be
useless. Once again, TC++PL have chapters about those things.
thanks! I will give a look on this book

user experience is appreciated in this thread too (the best knowlege
on my opinion)

Aug 27 '07 #5
Diego Martins wrote:
On Aug 27, 2:29 pm, "Victor Bazarov" <v.Abaza...@com Acast.netwrote:
>As for the
streams, there was a book by Angelika Langer and Klaus Kreft, I
heard good things about it. Dietmar Kuehl has also written on
the same or similar subject, IIRC.

nice! do you know the book names?
[..]
You're kidding, right? Can't you google?

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Aug 27 '07 #6
On Aug 27, 2:57 pm, "Victor Bazarov" <v.Abaza...@com Acast.netwrote:
Diego Martins wrote:
On Aug 27, 2:29 pm, "Victor Bazarov" <v.Abaza...@com Acast.netwrote:
As for the
streams, there was a book by Angelika Langer and Klaus Kreft, I
heard good things about it. Dietmar Kuehl has also written on
the same or similar subject, IIRC.
nice! do you know the book names?
[..]

You're kidding, right? Can't you google?
not kidding. serious! you might give me valuable information about the
edition you read, for example

there is more than a book written by Angelika Langer and Klaus Kreft
with IOstreams...

and I couldn't find a book of Dietman Kuehl. I will try to read some
thing from his page, instead
http://www.inf.uni-konstanz.de/~kuehl/

your advice is good and I guess you are a good man.
but the excess of coffee must be making you to see newbies everywhere
in comp.lang.c++ :) try to relax

Aug 27 '07 #7
Diego Martins wrote:
On Aug 27, 2:57 pm, "Victor Bazarov" <v.Abaza...@com Acast.netwrote:
>Diego Martins wrote:
>>On Aug 27, 2:29 pm, "Victor Bazarov" <v.Abaza...@com Acast.net>
wrote:
As for the
streams, there was a book by Angelika Langer and Klaus Kreft, I
heard good things about it. Dietmar Kuehl has also written on
the same or similar subject, IIRC.
>>nice! do you know the book names?
[..]

You're kidding, right? Can't you google?

not kidding. serious! you might give me valuable information about the
edition you read, for example
I didn't read it. I had no need for it. However, other folks have
recommended it, and at the time of my reply the book review section of
ACCU.org was unavailable. Did you simply miss my "I heard good things
about it"?

I'd given you as much information as I could.
there is more than a book written by Angelika Langer and Klaus Kreft
with IOstreams...
Hey, you already know more than I do. Try comparing the books using
review section on Amazon, see whether you can find the preface for them
and read them, perhaps you can get something from there...
and I couldn't find a book of Dietman Kuehl. I will try to read some
thing from his page, instead
http://www.inf.uni-konstanz.de/~kuehl/
Then apparently I didn't RC. Now that I'm thinking about it, he did
write a streams library, or so it seems... Not a book... If you've
found his web page, you've found the right place to find out more.
your advice is good and I guess you are a good man.
but the excess of coffee must be making you to see newbies everywhere
in comp.lang.c++ :) try to relax
Ah, that's what it was, my coffee drinking. I couldn't have figured
it out without you. Thanks, I will try to relax. As soon as I retire,
I guess. In the mean time, "if it walks like a newbie and quacks like
a newbie..."

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Aug 27 '07 #8
On Aug 27, 4:46 pm, "Victor Bazarov" <v.Abaza...@com Acast.netwrote:
Ah, that's what it was, my coffee drinking. I couldn't have figured
it out without you. Thanks, I will try to relax. As soon as I retire,
I guess. In the mean time, "if it walks like a newbie and quacks like
a newbie..."
duck typing is off-topic in C++ :P
(and I hate smalltalk and Ruby)

Aug 28 '07 #9
anyone? :(

I am bugging since it is extremely difficult finding good material
about these tricky topics!
Specially the allocator thing!

Aug 28 '07 #10

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

Similar topics

18
380
by: Mark A. Gibbs | last post by:
I'm having yet another headache with making a standard allocator. What behaviour should be expected from the assigment operator? When would it be called? Why is it there at all, when you can't change allocators in containers? To give a little more depth, I have a class like this: class HeapAllocator { // All requirements of the allocator interface are met along with:
15
4277
by: Alex Vinokur | last post by:
I am looking for any custom allocator sample code for std::vector. Thanks. -- Alex Vinokur http://mathforum.org/library/view/10978.html http://sourceforge.net/users/alexvn
15
2076
by: natespamacct | last post by:
Hi All, I'm not sure if I'm dealing with a C++ question or a compiler question, so please forgive me if I'm asking in the wrong spot. If so, maybe someone can direct me to more appropriate spot. In migrating from gcc 3.2.3 to gcc 3.4.3 the following situation comes up. I have the following:
2
1786
by: Peter Rilling | last post by:
One nice thing about collections and arrays is that they implement the IEnumerator and IEnumerable interfaces which allow for more then one iterator to walk the list of items without affecting the position of the other iterators. Is there a similar thing with streams? Is there anything in the framework that wraps a stream in such a way that the stream position is decoupled from the stream itself?
6
1633
by: Christoph | last post by:
I was browsing both the Amazon and Barnes & Noble websites looking for some good books but there appears to be *so* many and it's hard to tell which are going to be good or not. I'm looking for one or two *good* books on the subjects of ASP.NET and ADO.NET together. E.g., using ASP.NET on the front end to communicate with a back end database via ADO.NET. I'm hoping to find a mid-level type of book. I've been using PHP and MySQL for...
8
2445
by: Mateusz Åoskot | last post by:
Hi, I know iterator categories as presented by many authors: Stroustrup, Josuttis and Koenig&Moo: Input <---| |<--- Forward <--- Bidirectional <--- Random Output <---|
206
8374
by: WaterWalk | last post by:
I've just read an article "Building Robust System" by Gerald Jay Sussman. The article is here: http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf In it there is a footprint which says: "Indeed, one often hears arguments against building exibility into an engineered sys- tem. For example, in the philosophy of the computer language Python it is claimed: \There should be one|and preferably only one|obvious...
7
3839
by: Max Odendahl | last post by:
Hi, my own declared class has a stl::list as a member variable. I now need access to those from the outside. Is a custom iterator for my class the best solution for this and how to do this? I would like to sort the list according to different criteria before, so I would like to offer different iterators, which then sort first based on the type of iterator constructed. Any code sample or link would be nice.
6
13860
by: Juha Nieminen | last post by:
I tested the speed of a simple program like this: //------------------------------------------------------------ #include <list> #include <boost/pool/pool_alloc.hpp> int main() { typedef std::list<intList_t; // default allocator //typedef std::list<int, boost::pool_allocator<int List_t;
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8971
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7496
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5380
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.