home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 31,443 of 33,346   
   Marc to Gene Bushuyev   
   Re: any_of, all_of, none_of   
   01 Sep 11 15:53:32   
   
   eacd0621   
   From: marc.glisse@gmail.com   
      
   Gene Bushuyev  wrote:   
      
   > On Aug 23, 6:49 pm, "gast...@hotmail.com"  wrote:   
   >> Hello all,   
   >>   
   >> I was wondering why the c++ committee didn't decide to stick to the   
   >> '_if' convention as used in other STL algorithm, like all/all_if,   
   >> any / any_if etc.   
   >   
   > It depends on personal preferences and perhaps the area of expertise.   
   > All those mentioned algorithms were known under the name of "reduce"   
   > functions since the dawn of hardware design languages. So I would   
   > prefer them to be called the same way: or_reduce, and and_reduce. But   
   > the real question, where is the equivalent of xor_reduce? And if they   
   > do decide to add it, I can't find any descriptive name consistent with   
   > this naming convention.   
      
   xor_reduce would just be sum/count/cardinality modulo 2 (ie its   
   parity) right? I don't really understand what oddity you are looking   
   for there ;-)   
      
      
   --   
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca