Skip to content

Commit

Permalink
Remove propagate_on_* types and is_always_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
Keita Iwabuchi committed Feb 14, 2024
1 parent 98fcc95 commit 76b552c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions include/metall/utility/fallback_allocator_adaptor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ class fallback_allocator_adaptor {
typename primary_allocator_type::const_void_pointer;
using difference_type = typename primary_allocator_type::difference_type;
using size_type = typename primary_allocator_type::size_type;
using propagate_on_container_copy_assignment = std::true_type;
using propagate_on_container_move_assignment = std::true_type;
using propagate_on_container_swap = std::true_type;
using is_always_equal = std::false_type;

/// \brief Makes another allocator type for type T2
template <typename T2>
Expand Down Expand Up @@ -205,15 +201,6 @@ class fallback_allocator_adaptor {
}
}

/// \brief Obtains the copy-constructed version of the allocator a.
/// \param a Allocator used by a standard container passed as an argument to a
/// container copy constructor. \return The allocator to use by the
/// copy-constructed standard containers.
fallback_allocator_adaptor select_on_container_copy_construction(
const fallback_allocator_adaptor &a) {
return fallback_allocator_adaptor(a);
}

// ---------- This class's unique public functions ---------- //
primary_allocator_type &primary_allocator() { return m_primary_allocator; }

Expand Down

0 comments on commit 76b552c

Please sign in to comment.