|
|
|
|
|
|
|
|
|
|
|
|||||||
Defines | |
| #define | stlsoft_num_elements(ar) |
| Evaluates, at compile time, to the number of elements within the given vector entity. | |
| #define | stlsoft_raw_offsetof(s, m) offsetof(s, m) |
| Evaluates, at compile time, the offset of a structure/class member. | |
| #define | stlsoft_destroy_instance(t, _type, p) do { (p)->~t(); } while(0) |
Destroys the given instance p of the given type (t and _type). | |
| #define | stlsoft_gen_opaque(type) typedef struct __stlsoft_htype##type{ int i;} const *type; |
Generates an opaque type with the name type. | |
| #define | STLSOFT_DECLARE_TEMPLATE_PARAM_AS_FRIEND(T) friend T |
| Declares a template (class) parameter to be a friend of the template. | |
| #define | STLSOFT_GEN_TRAIT_SPECIALISATION(TR, T, V) |
| Used to define a specialisation of a traits type. | |
| #define | STLSOFT_SUPPRESS_UNUSED(x) ((void)x) |
| Used to suppress unused variable warnings. | |
|
|
Declares a template (class) parameter to be a friend of the template. Is it used as follows:
|
|
|
Destroys the given instance
|
|
|
Generates an opaque type with the name For example, the following defines two distinct opaque types:
The two types are incompatible with each other, and with any other types (except that they are both convertible to |
|
|
Value: \
STLSOFT_TEMPLATE_SPECIALISATION \
struct TR<T> \
{ \
enum { value = V }; \
};
|
|
|
Evaluates, at compile time, to the number of elements within the given vector entity. Is it used as follows:
|
|
|
Evaluates, at compile time, the offset of a structure/class member.
|
|
|
Used to suppress unused variable warnings.
|
|
|
| STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004 |