diff --git a/include/metall/container/fallback_allocator.hpp b/include/metall/container/fallback_allocator.hpp index 291c13ab..4b10d51e 100644 --- a/include/metall/container/fallback_allocator.hpp +++ b/include/metall/container/fallback_allocator.hpp @@ -15,25 +15,25 @@ namespace metall::container { /// \brief A STL compatible allocator which fallbacks to a heap allocator (e.g., /// malloc()) if its constructor receives no argument to construct the stateful /// allocator instance. -/// \tparam StatefullAllocator The stateful allocator type. It must not be +/// \tparam StatefulAllocator The stateful allocator type. It must not be /// default constructible. -template +template class fallback_allocator_adaptor { - // Check if the StatefullAllocator takes arugments in its constructor - static_assert(!std::is_constructible::value, + // Check if the StatefulAllocator takes arguments in its constructor + static_assert(!std::is_constructible::value, "The stateful allocator must not be default constructible"); private: template using other_stateful_allocator_type = typename std::allocator_traits< - StatefullAllocator>::template rebind_alloc; + StatefulAllocator>::template rebind_alloc; public: // -------------------- // // Public types and static values // -------------------- // using stateful_allocator_type = typename std::remove_const< - typename std::remove_reference::type>::type; + typename std::remove_reference::type>::type; using value_type = typename stateful_allocator_type::value_type; using pointer = typename stateful_allocator_type::pointer;