dune-common  2.5-git
Public Types | List of all members
Dune::ConstantVolatileTraits< T > Struct Template Reference

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

#include <dune/common/typetraits.hh>

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. More...
 
typedef std::add_const< UnqualifiedType >::type ConstType
 The const type. More...
 
typedef std::add_cv< UnqualifiedType >::type ConstVolatileType
 The const volatile type. More...
 

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

§ ConstType

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

The const type.

Deprecated:
"Use std::add_const instead!"

§ ConstVolatileType

template<typename T >
typedef std::add_cv<UnqualifiedType>::type Dune::ConstantVolatileTraits< T >::ConstVolatileType

The const volatile type.

Deprecated:
"Use std::add_cv instead!"

§ UnqualifiedType

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

§ anonymous enum

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: