// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root // SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception #ifndef DUNE_ISTL_ALLOCATOR_HH #define DUNE_ISTL_ALLOCATOR_HH #include #include #include namespace Dune { template struct exists{ static const bool value = true; }; template struct DefaultAllocatorTraits { using type = std::allocator; }; template struct DefaultAllocatorTraits > { using type = typename T::allocator_type; }; template struct AllocatorTraits : public DefaultAllocatorTraits {}; template using AllocatorType = typename AllocatorTraits::type; template using ReboundAllocatorType = typename std::allocator_traits::type>::template rebind_alloc; } // end namespace Dune #endif // DUNE_ISTL_ALLOCATOR_HH