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 

Could someone tell me some book or articles about Concepts a

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated)
View previous topic :: View next topic  
Author Message
zqiang320
Guest





PostPosted: Wed Sep 13, 2006 12:11 am    Post subject: Could someone tell me some book or articles about Concepts a Reply with quote



Dear friends:
I am reading sgi STL concept_checks.h, but I could not
understand its semantic, such as:

#define __STL_CLASS_REQUIRES(__type_var, __concept) \
typedef void (* __func##__type_var##__concept)( __type_var ); \
template <__func##__type_var##__concept _Tp1> \
struct __dummy_struct_##__type_var##__concept { }; \
static __dummy_struct_##__type_var##__concept< \
__concept##_concept_specification< \
__type_var>::__concept##_requirement_violation> \
__dummy_ptr_##__type_var##__concept

Could someone tell me some book or articles about Concepts and concept
checking ?


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to top
Douglas Gregor
Guest





PostPosted: Wed Sep 13, 2006 2:14 am    Post subject: Re: Could someone tell me some book or articles about Concep Reply with quote



zqiang320 wrote:
Quote:
Dear friends:
I am reading sgi STL concept_checks.h, but I could not
understand its semantic, such as:

#define __STL_CLASS_REQUIRES(__type_var, __concept) \
typedef void (* __func##__type_var##__concept)( __type_var ); \
template <__func##__type_var##__concept _Tp1> \
struct __dummy_struct_##__type_var##__concept { }; \
static __dummy_struct_##__type_var##__concept< \
__concept##_concept_specification< \
__type_var>::__concept##_requirement_violation> \
__dummy_ptr_##__type_var##__concept

Could someone tell me some book or articles about Concepts and concept
checking ?

There is a paper here by Siek and Lumsdaine that describes concept
checking:

http://www.oonumerics.org/tmpw00/siek.pdf

Cheers,
Doug


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to top
Mike
Guest





PostPosted: Fri Sep 15, 2006 1:48 am    Post subject: Re: Could someone tell me some book or articles about Concep Reply with quote



zqiang320 wrote:
Quote:
Could someone tell me some book or articles about Concepts and concept
checking ?

Excuse me if you've already checked boost docs, but there is some
documentation on concept checks at
http://www.boost.org/libs/concept_check/concept_check.htm.

Also, there is a draft proposal at
http://www.generic-programming.org/languages/conceptcpp/specification/concep
ts.php
for modifying C++ to include concepts that might be useful.

Mike


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated) 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.