cds  1.3.0
Data Structures | Functions
cds::details Namespace Reference

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.
 

Detailed Description

Helper classes and functions.

Function Documentation

template<class T >
static void cds::details::call_dtor ( T *  p)
inlinestatic

Helper function to call destructor of type T.

This function is empty for the type T that has trivial destructor.

template<int ALIGN, typename T >
static bool cds::details::is_aligned ( T const *  p)
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

template<typename T >
static bool cds::details::is_aligned ( T const *  p,
size_t  nAlign 
)
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


cds 1.3.0 Developed by Maxim Khiszinsky aka khizmax 2007 - 2012
Autogenerated Sat Dec 29 2012 19:12:33 by Doxygen 1.8.3