1153761Swollman// -*- C++ -*-
2192886Sedwin
3192886Sedwin// Copyright (C) 2005, 2006 Free Software Foundation, Inc.
4153761Swollman//
52742Swollman// This file is part of the GNU ISO C++ Library.  This library is free
686464Swollman// software; you can redistribute it and/or modify it under the terms
72742Swollman// of the GNU General Public License as published by the Free Software
82742Swollman// Foundation; either version 2, or (at your option) any later
92742Swollman// version.
102742Swollman
112742Swollman// This library is distributed in the hope that it will be useful, but
122742Swollman// WITHOUT ANY WARRANTY; without even the implied warranty of
1386222Swollman// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1486222Swollman// General Public License for more details.
152742Swollman
1658787Sru// You should have received a copy of the GNU General Public License
172742Swollman// along with this library; see the file COPYING.  If not, write to
182742Swollman// the Free Software Foundation, 59 Temple Place - Suite 330, Boston,
192742Swollman// MA 02111-1307, USA.
202742Swollman
212742Swollman// As a special exception, you may use this file as part of a free
222742Swollman// software library without restriction.  Specifically, if other files
2358787Sru// instantiate templates or use macros or inline functions from this
2458787Sru// file, or you compile this file and link it with other files to
2558787Sru// produce an executable, this file does not by itself cause the
262742Swollman// resulting executable to be covered by the GNU General Public
272742Swollman// License.  This exception does not however invalidate any other
289908Swollman// reasons why the executable file might be covered by the GNU General
292742Swollman// Public License.
3030711Swollman
312742Swollman// Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL.
329908Swollman
33169811Swollman// Permission to use, copy, modify, sell, and distribute this software
34169811Swollman// is hereby granted without fee, provided that the above copyright
35169811Swollman// notice appears in all copies, and that both that copyright notice
36169811Swollman// and this permission notice appear in supporting documentation. None
37169811Swollman// of the above authors, nor IBM Haifa Research Laboratories, make any
38169811Swollman// representation about the suitability of this software for any
39169811Swollman// purpose. It is provided "as is" without express or implied
40169811Swollman// warranty.
41169811Swollman
42169811Swollman/**
43169811Swollman * @file direct_mask_range_hashing_imp.hpp
442742Swollman * Contains a range-hashing policy implementation
4558787Sru */
46169811Swollman
47169811SwollmanPB_DS_CLASS_T_DEC
48169811Swollmanvoid
49169811SwollmanPB_DS_CLASS_C_DEC::
50169811Swollmanswap(PB_DS_CLASS_C_DEC& other)
519908Swollman{ mask_based_base::swap(other); }
5220094Swollman
53149514SwollmanPB_DS_CLASS_T_DEC
5420094Swollmanvoid
5520094SwollmanPB_DS_CLASS_C_DEC::
5620094Swollmannotify_resized(size_type size)
5720094Swollman{ mask_based_base::notify_resized(size); }
5820094Swollman
5920094SwollmanPB_DS_CLASS_T_DEC
6020094Swollmaninline typename PB_DS_CLASS_C_DEC::size_type
6120094SwollmanPB_DS_CLASS_C_DEC::
6220094Swollmanoperator()(size_type hash) const
6320094Swollman{ return mask_based_base::range_hash(hash); }
6420094Swollman
6558787Sru