1219820Sjeff// -*- C++ -*-
2219820Sjeff
3219820Sjeff// Copyright (C) 2005-2020 Free Software Foundation, Inc.
4219820Sjeff//
5219820Sjeff// This file is part of the GNU ISO C++ Library.  This library is free
6219820Sjeff// software; you can redistribute it and/or modify it under the terms
7219820Sjeff// of the GNU General Public License as published by the Free Software
8219820Sjeff// Foundation; either version 3, or (at your option) any later
9219820Sjeff// version.
10219820Sjeff
11219820Sjeff// This library is distributed in the hope that it will be useful, but
12219820Sjeff// WITHOUT ANY WARRANTY; without even the implied warranty of
13219820Sjeff// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14219820Sjeff// General Public License for more details.
15219820Sjeff
16219820Sjeff// Under Section 7 of GPL version 3, you are granted additional
17219820Sjeff// permissions described in the GCC Runtime Library Exception, version
18219820Sjeff// 3.1, as published by the Free Software Foundation.
19219820Sjeff
20219820Sjeff// You should have received a copy of the GNU General Public License and
21219820Sjeff// a copy of the GCC Runtime Library Exception along with this program;
22219820Sjeff// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
23219820Sjeff// <http://www.gnu.org/licenses/>.
24219820Sjeff
25219820Sjeff// Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL.
26219820Sjeff
27219820Sjeff// Permission to use, copy, modify, sell, and distribute this software
28219820Sjeff// is hereby granted without fee, provided that the above copyright
29219820Sjeff// notice appears in all copies, and that both that copyright notice
30219820Sjeff// and this permission notice appear in supporting documentation. None
31219820Sjeff// of the above authors, nor IBM Haifa Research Laboratories, make any
32219820Sjeff// representation about the suitability of this software for any
33219820Sjeff// purpose. It is provided "as is" without express or implied
34219820Sjeff// warranty.
35219820Sjeff
36219820Sjeff/**
37219820Sjeff * @file gp_hash_table_map_/info_fn_imps.hpp
38219820Sjeff * Contains implementations of gp_ht_map_'s entire container info related
39219820Sjeff * functions.
40219820Sjeff */
41219820Sjeff
42219820Sjeff#ifdef PB_DS_CLASS_C_DEC
43219820Sjeff
44219820SjeffPB_DS_CLASS_T_DEC
45219820Sjeffinline typename PB_DS_CLASS_C_DEC::size_type
46219820SjeffPB_DS_CLASS_C_DEC::
47219820Sjeffsize() const
48219820Sjeff{ return m_num_used_e; }
49219820Sjeff
50219820SjeffPB_DS_CLASS_T_DEC
51219820Sjeffinline typename PB_DS_CLASS_C_DEC::size_type
52219820SjeffPB_DS_CLASS_C_DEC::
53219820Sjeffmax_size() const
54219820Sjeff{ return s_entry_allocator.max_size(); }
55219820Sjeff
56219820SjeffPB_DS_CLASS_T_DEC
57219820Sjeff_GLIBCXX_NODISCARD
58219820Sjeffinline bool
59219820SjeffPB_DS_CLASS_C_DEC::
60219820Sjeffempty() const
61219820Sjeff{ return (size() == 0); }
62219820Sjeff#endif
63219820Sjeff