U++ framework
Do not panic. Ask here before giving up.

Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » What does , means?
Re: What does , means? [message #15274 is a reply to message #15272] Tue, 15 April 2008 00:10 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1428
Registered: September 2007
Ultimate Contributor
mdelfede wrote on Tue, 15 April 2008 00:42

really nice the usage of operator, in boost...I wonder if it can be implemented in upp to fill arrays and so.

Max


I see no good reason why it couldn't. I think the real question is how often do you really need it? These nice little tricks offer to little in the case of normal code, where data structures are most often populated IMO algorithmically, and in general one a one-by-one basis. In the cases a such syntactic sugars do not help that much. The nice part is that += operator, which can be quite expensive performance wise, with default pick semantics could be really nice and efficient.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Optimized memcmp for x86
Next Topic: THISBACK and function-overloading
Goto Forum:
  


Current Time: Sat Aug 01 09:21:40 GMT+2 2026

Total time taken to generate the page: 0.01519 seconds