|
cds
1.3.0
|
Helper classes and functions. More...
Data Structures | |
| class | AlignedAllocator |
| Allocator for aligned data. More... | |
| struct | aligned_type |
| Aligned type. More... | |
| struct | align_as |
| class | Allocator |
Extends std::allocator interface to provide semantics like operator new and delete. More... | |
| struct | deferral_deleter |
Deferral removing of the object of type T. Helper class. More... | |
| class | Comparator |
| Comparator. More... | |
| class | Comparator< std::string > |
| String specialization. It uses string::compare method. More... | |
| class | marked_ptr |
| Marked pointer. More... | |
| class | type_padding |
Automatic alignment type T to AlignFactor. More... | |
| struct | void_selector |
| Void type selector. More... | |
Functions | |
| template<class T > | |
| static void | call_dtor (T *p) |
| Helper function to call destructor of type T. | |
| template<int ALIGN, typename T > | |
| static bool | is_aligned (T const *p) |
Checks if the pointer p has ALIGN byte alignment. | |
| template<typename T > | |
| static bool | is_aligned (T const *p, size_t nAlign) |
Checks if the pointer p has nAlign byte alignment. | |
Helper classes and functions.
|
inlinestatic |
Helper function to call destructor of type T.
This function is empty for the type T that has trivial destructor.
|
inlinestatic |
Checks if the pointer p has ALIGN byte alignment.
ALIGN must be power of 2.
The function is mostly intended for run-time assertion
|
inlinestatic |
Checks if the pointer p has nAlign byte alignment.
nAlign must be power of 2.
The function is mostly intended for run-time assertion