1169691Skan// -*- C++ -*-
2169691Skan
3169691Skan// Copyright (C) 2005-2015 Free Software Foundation, Inc.
4169691Skan//
5169691Skan// This file is part of the GNU ISO C++ Library.  This library is free
6169691Skan// software; you can redistribute it and/or modify it under the terms
7169691Skan// of the GNU General Public License as published by the Free Software
8169691Skan// Foundation; either version 3, or (at your option) any later
9169691Skan// version.
10169691Skan
11169691Skan// This library is distributed in the hope that it will be useful, but
12169691Skan// WITHOUT ANY WARRANTY; without even the implied warranty of
13169691Skan// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14169691Skan// General Public License for more details.
15169691Skan
16169691Skan// Under Section 7 of GPL version 3, you are granted additional
17169691Skan// permissions described in the GCC Runtime Library Exception, version
18169691Skan// 3.1, as published by the Free Software Foundation.
19169691Skan
20169691Skan// You should have received a copy of the GNU General Public License and
21169691Skan// a copy of the GCC Runtime Library Exception along with this program;
22169691Skan// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
23169691Skan// <http://www.gnu.org/licenses/>.
24169691Skan
25169691Skan// Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL.
26169691Skan
27169691Skan// Permission to use, copy, modify, sell, and distribute this software
28169691Skan// is hereby granted without fee, provided that the above copyright
29169691Skan// notice appears in all copies, and that both that copyright notice
30169691Skan// and this permission notice appear in supporting documentation. None
31169691Skan// of the above authors, nor IBM Haifa Research Laboratories, make any
32169691Skan// representation about the suitability of this software for any
33169691Skan// purpose. It is provided "as is" without express or implied
34169691Skan// warranty.
35169691Skan
36169691Skan/**
37169691Skan * @file cc_hash_table_map_/resize_no_store_hash_fn_imps.hpp
38169691Skan * Contains implementations of cc_ht_map_'s resize related functions, when the
39169691Skan * hash value is not stored.
40169691Skan */
41169691Skan
42169691SkanPB_DS_CLASS_T_DEC
43169691Skaninline typename PB_DS_CLASS_C_DEC::entry_pointer
44169691SkanPB_DS_CLASS_C_DEC::
45169691Skanresize_imp_no_exceptions_reassign_pointer(entry_pointer p_e, entry_pointer_array a_p_entries_resized, false_type)
46169691Skan{
47169691Skan  const size_type hash_pos =
48169691Skan    ranged_hash_fn_base::operator()(PB_DS_V2F(p_e->m_value));
49169691Skan
50169691Skan  entry_pointer const p_next_e = p_e->m_p_next;
51169691Skan  p_e->m_p_next = a_p_entries_resized[hash_pos];
52169691Skan  a_p_entries_resized[hash_pos] = p_e;
53169691Skan  return p_next_e;
54169691Skan}
55169691Skan