Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::base::HasTrivialDestructor< T > Struct Template Reference

HasTrivialDestructor is similar to std::has_trivial_destructor or std::is_trivially_destructible. More...

#include "type_structs.h"

Collaboration diagram for ion::base::HasTrivialDestructor< T >:

Static Public Attributes

static const bool value = __has_trivial_destructor(T)
 

Detailed Description

template<typename T>
struct ion::base::HasTrivialDestructor< T >

HasTrivialDestructor is similar to std::has_trivial_destructor or std::is_trivially_destructible.

Unfortunately, some STL implementations use std::has_trivial_destructor while some use std::is_trivially_destructible, and still others have neither. This version simply uses the builtin that is available on all platforms.

Definition at line 83 of file type_structs.h.

Member Data Documentation

template<typename T >
const bool ion::base::HasTrivialDestructor< T >::value = __has_trivial_destructor(T)
static

Definition at line 84 of file type_structs.h.


The documentation for this struct was generated from the following file: