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 32,584 of 33,346   
   rogeeva@googlemail.com to All   
   Re: why std::vector&& is not a univer   
   10 Oct 12 01:48:33   
   
   On Tuesday, October 9, 2012 2:19:29 PM UTC-4, Daniel Krügler wrote:   
   > >> struct is_vector> : std::true_type {};   
   > > While we on the subject, why doesn't standard type traits provide   
   > > this?   
   > I don't think that this trait should be standardized, because it is   
   > neither very complicated to write, nor do I see any general pattern in   
      
   Ok. That's fair. Though I'd say since there is some container concept   
   defined in standard, there should be is_container trait defined to match   
   it, no?   
      
   > Generally useful traits provide answer to questions that are related to   
   > type families that satisfy concepts.   
      
   Ok. How would I go about writing a trait for types which match a concept   
   of a container which I can forward iterate over? I'll need .begin(), .size(),   
   and ::const_iterator.   
      
   Thank you.   
   Gennadiy   
      
      
   --   
         [ 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