Dune::ConstantVolatileTraits< T > Struct Template Reference
[Common]

Determines whether a type is const or volatile and provides the unqualified types. More...

#include <dune/common/typetraits.hh>

List of all members.

Public Types

enum  { isVolatile = std::is_volatile<T>::value, isConst = std::is_const<T>::value }
typedef std::remove_cv< T >::type UnqualifiedType
 The unqualified type.
typedef std::add_const
< UnqualifiedType >::type 
ConstType
 The const type.
typedef std::add_cv
< UnqualifiedType >::type 
ConstVolatileType
 The const volatile type.

Detailed Description

template<typename T>
struct Dune::ConstantVolatileTraits< T >

Determines whether a type is const or volatile and provides the unqualified types.


Member Typedef Documentation

template<typename T >
typedef std::add_const<UnqualifiedType>::type Dune::ConstantVolatileTraits< T >::ConstType

The const type.

Deprecated:
"Use std::add_const instead!"
template<typename T >
typedef std::add_cv<UnqualifiedType>::type Dune::ConstantVolatileTraits< T >::ConstVolatileType

The const volatile type.

Deprecated:
"Use std::add_cv instead!"
template<typename T >
typedef std::remove_cv<T>::type Dune::ConstantVolatileTraits< T >::UnqualifiedType

The unqualified type.

Deprecated:
"Use std::remove_const instead!"

Member Enumeration Documentation

template<typename T >
anonymous enum
Enumerator:
isVolatile 

True if T has a volatile specifier.

isConst 

True if T has a const qualifier.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 25 Mar 2018 for dune-common by  doxygen 1.6.1