C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Funktion "nachträglich" implementieren

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (German)
View previous topic :: View next topic  
Author Message
Daniel Albuschat
Guest





PostPosted: Thu Jun 16, 2005 9:57 am    Post subject: Re: Funktion "nachträglich" implementieren Reply with quote



Mark Henning wrote:

Quote:
Es fuchst mich schon seit geraumer Zeit, dass std::string z.B. keine
Funktion "right" hat
[snip]
- Die neuen Funktionen sollen genau wie die Standard-Funktionen
von std::string aus aufrufbar sein.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Genau das ist dein Denkfehler.
Ob du right(string)[1] oder string.right() schreibst, sollte
keinen grossen Unterschied machen. Ob du aber right auf
mehr als nur einen std::string aufrufen kannst, oder ob
..right() fuer jedes Objekt, bei dem es Sinn macht, neu implementiert
werden muss, macht schon einen Unterschied.

Vergleiche hierzu auch:

http://www.cuj.com/documents/s=8042/cuj0002meyers/

MfG,
Daniel

[1] Es wird dann eher in right(string.begin(),string.end()) ausufern.

--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de

Back to top
Dirk Jagdmann
Guest





PostPosted: Fri Jun 17, 2005 11:36 am    Post subject: Re: Funktion "nachträglich" implementieren Reply with quote



Quote:
Es fuchst mich schon seit geraumer Zeit, dass std::string z.B. keine
Funktion "right" hat, wie sie von anderen Stringklassen her bekannt
ist. Es gäbe da noch so einige weitere Funktionen, die ich vermisse.

Schau doch mal, ob was du vermisst bei boost dabei ist:

http://boost.org/doc/html/string_algo.html
--
---> doj / cubic
----> http://cubic.org/~doj
-----> http://llg.cubic.org

--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de

Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.