155682Smarkm// -*- C++ -*- 257419Smarkm 355682Smarkm// Copyright (C) 2005, 2006 Free Software Foundation, Inc. 455682Smarkm// 555682Smarkm// This file is part of the GNU ISO C++ Library. This library is free 655682Smarkm// software; you can redistribute it and/or modify it under the terms 755682Smarkm// of the GNU General Public License as published by the Free Software 855682Smarkm// Foundation; either version 2, or (at your option) any later 955682Smarkm// version. 1055682Smarkm 1155682Smarkm// This library is distributed in the hope that it will be useful, but 1255682Smarkm// WITHOUT ANY WARRANTY; without even the implied warranty of 1355682Smarkm// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1455682Smarkm// General Public License for more details. 1555682Smarkm 1655682Smarkm// You should have received a copy of the GNU General Public License 1755682Smarkm// along with this library; see the file COPYING. If not, write to 1855682Smarkm// the Free Software Foundation, 59 Temple Place - Suite 330, Boston, 1955682Smarkm// MA 02111-1307, USA. 2055682Smarkm 2155682Smarkm// As a special exception, you may use this file as part of a free 2255682Smarkm// software library without restriction. Specifically, if other files 2355682Smarkm// instantiate templates or use macros or inline functions from this 2455682Smarkm// file, or you compile this file and link it with other files to 2555682Smarkm// produce an executable, this file does not by itself cause the 2655682Smarkm// resulting executable to be covered by the GNU General Public 2755682Smarkm// License. This exception does not however invalidate any other 2855682Smarkm// reasons why the executable file might be covered by the GNU General 2955682Smarkm// Public License. 3055682Smarkm 3155682Smarkm// Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL. 3255682Smarkm 3355682Smarkm// Permission to use, copy, modify, sell, and distribute this software 3455682Smarkm// is hereby granted without fee, provided that the above copyright 3555682Smarkm// notice appears in all copies, and that both that copyright notice 3655682Smarkm// and this permission notice appear in supporting documentation. None 3757419Smarkm// of the above authors, nor IBM Haifa Research Laboratories, make any 3855682Smarkm// representation about the suitability of this software for any 3955682Smarkm// purpose. It is provided "as is" without express or implied 4057419Smarkm// warranty. 4157419Smarkm 4257419Smarkm/** 4357419Smarkm * @file info_fn_imps.hpp 4457419Smarkm * Contains implementations of gp_ht_map_'s entire container info related 4557419Smarkm * functions. 4657419Smarkm */ 4757419Smarkm 4857419SmarkmPB_DS_CLASS_T_DEC 4957419Smarkminline typename PB_DS_CLASS_C_DEC::size_type 5057419SmarkmPB_DS_CLASS_C_DEC:: 5157419Smarkmsize() const 5257419Smarkm{ return m_num_used_e; } 5357419Smarkm 5457419SmarkmPB_DS_CLASS_T_DEC 5557419Smarkminline typename PB_DS_CLASS_C_DEC::size_type 5657419SmarkmPB_DS_CLASS_C_DEC:: 5757419Smarkmmax_size() const 5857419Smarkm{ return s_entry_allocator.max_size(); } 5957419Smarkm 6057419SmarkmPB_DS_CLASS_T_DEC 6157419Smarkminline bool 6257419SmarkmPB_DS_CLASS_C_DEC:: 6357419Smarkmempty() const 6457419Smarkm{ return (size() == 0); } 6557419Smarkm