 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
zqiang320 Guest
|
Posted: Wed Sep 13, 2006 12:11 am Post subject: Could someone tell me some book or articles about Concepts a |
|
|
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
|
Posted: Wed Sep 13, 2006 2:14 am Post subject: Re: Could someone tell me some book or articles about Concep |
|
|
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
|
|
| Back to top |
|
 |
|
|
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
|
|