1#ifndef DUNE_ISTL_ALLOCATOR_HH
2#define DUNE_ISTL_ALLOCATOR_HH
11 static const bool value =
true;
14 template<
typename T,
typename =
void>
15 struct DefaultAllocatorTraits
17 using type = std::allocator<T>;
21 struct DefaultAllocatorTraits<T,
void_t<typename T::allocator_type> >
23 using type =
typename T::allocator_type;
27 struct AllocatorTraits :
public DefaultAllocatorTraits<T> {};
30 using AllocatorType =
typename AllocatorTraits<T>::type;
32 template<
typename T,
typename X>
33 using ReboundAllocatorType =
typename std::allocator_traits<typename AllocatorTraits<T>::type>::template rebind_alloc<X>;
Traits for type conversions and type information.
typename Impl::voider< Types... >::type void_t
Is void for all valid input types (see N3911). The workhorse for C++11 SFINAE-techniques.
Definition: typetraits.hh:40
Dune namespace.
Definition: alignedallocator.hh:14