Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
Nektar::ArrayDestructionPolicy< ObjectType, typename boost::disable_if< boost::is_fundamental< ObjectType > >::type > Class Template Reference

#include <ArrayPolicies.hpp>

Static Public Member Functions

static void Destroy (ObjectType *data, unsigned int itemsToDestroy)

Detailed Description

template<typename ObjectType>
class Nektar::ArrayDestructionPolicy< ObjectType, typename boost::disable_if< boost::is_fundamental< ObjectType > >::type >

Definition at line 170 of file ArrayPolicies.hpp.

Member Function Documentation

template<typename ObjectType >
static void Nektar::ArrayDestructionPolicy< ObjectType, typename boost::disable_if< boost::is_fundamental< ObjectType > >::type >::Destroy ( ObjectType *  data,
unsigned int  itemsToDestroy 
)
inlinestatic

Definition at line 174 of file ArrayPolicies.hpp.

{
for(unsigned int i = 0; i < itemsToDestroy; ++i)
{
ObjectType* memLocation = &data[itemsToDestroy - i - 1];
memLocation->~ObjectType();
}
}