OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
MemoryUtils.hpp File Reference
#include <memory>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

struct  OpenMD::Utils::details::is_container< typename, typename >
 
struct  OpenMD::Utils::details::is_container< T, std::void_t< typename T::value_type, typename T::reference, typename T::const_reference, typename T::iterator, typename T::const_iterator, typename T::difference_type, typename T::size_type, decltype(std::declval< T >().begin()), decltype(std::declval< T >().end()), decltype(std::declval< T >().cbegin()), decltype(std::declval< T >().cend()), decltype(std::declval< T >().max_size()), decltype(std::declval< T >().empty())> >
 

Namespaces

namespace  OpenMD
 This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.
 

Functions

template<typename T >
void OpenMD::Utils::details::lifted_deleter (T val)
 
template<typename T1 , typename T2 >
void OpenMD::Utils::details::lifted_deleter (std::pair< T1, T2 > &val)
 
template<typename Container >
void OpenMD::Utils::deletePointers (Container &container)
 

Variables

template<typename T >
constexpr bool OpenMD::Utils::details::is_container_v = is_container<T>::value
 

Detailed Description

Authors
tlin crdrisko
Date
10/25/2004
Version
1.0

Definition in file MemoryUtils.hpp.

Function Documentation

◆ deletePointers()

template<typename Container >
void OpenMD::Utils::deletePointers ( Container & container)

Definition at line 97 of file MemoryUtils.hpp.

◆ lifted_deleter() [1/2]

template<typename T1 , typename T2 >
void OpenMD::Utils::details::lifted_deleter ( std::pair< T1, T2 > & val)

Definition at line 90 of file MemoryUtils.hpp.

◆ lifted_deleter() [2/2]

template<typename T >
void OpenMD::Utils::details::lifted_deleter ( T val)

Definition at line 85 of file MemoryUtils.hpp.

Variable Documentation

◆ is_container_v

template<typename T >
bool OpenMD::Utils::details::is_container_v = is_container<T>::value
constexpr

Definition at line 82 of file MemoryUtils.hpp.