info_fn_imps.hpp revision 169691
1230557Sjimharris// -*- C++ -*-
2230557Sjimharris
3230557Sjimharris// Copyright (C) 2005, 2006 Free Software Foundation, Inc.
4230557Sjimharris//
5230557Sjimharris// This file is part of the GNU ISO C++ Library.  This library is free
6230557Sjimharris// software; you can redistribute it and/or modify it under the terms
7230557Sjimharris// of the GNU General Public License as published by the Free Software
8230557Sjimharris// Foundation; either version 2, or (at your option) any later
9230557Sjimharris// version.
10230557Sjimharris
11230557Sjimharris// This library is distributed in the hope that it will be useful, but
12230557Sjimharris// WITHOUT ANY WARRANTY; without even the implied warranty of
13230557Sjimharris// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14230557Sjimharris// General Public License for more details.
15230557Sjimharris
16230557Sjimharris// You should have received a copy of the GNU General Public License
17230557Sjimharris// along with this library; see the file COPYING.  If not, write to
18230557Sjimharris// the Free Software Foundation, 59 Temple Place - Suite 330, Boston,
19230557Sjimharris// MA 02111-1307, USA.
20230557Sjimharris
21230557Sjimharris// As a special exception, you may use this file as part of a free
22230557Sjimharris// software library without restriction.  Specifically, if other files
23230557Sjimharris// instantiate templates or use macros or inline functions from this
24230557Sjimharris// file, or you compile this file and link it with other files to
25230557Sjimharris// produce an executable, this file does not by itself cause the
26230557Sjimharris// resulting executable to be covered by the GNU General Public
27230557Sjimharris// License.  This exception does not however invalidate any other
28230557Sjimharris// reasons why the executable file might be covered by the GNU General
29230557Sjimharris// Public License.
30230557Sjimharris
31230557Sjimharris// Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL.
32230557Sjimharris
33230557Sjimharris// Permission to use, copy, modify, sell, and distribute this software
34230557Sjimharris// is hereby granted without fee, provided that the above copyright
35230557Sjimharris// notice appears in all copies, and that both that copyright notice
36230557Sjimharris// and this permission notice appear in supporting documentation. None
37230557Sjimharris// of the above authors, nor IBM Haifa Research Laboratories, make any
38230557Sjimharris// representation about the suitability of this software for any
39230557Sjimharris// purpose. It is provided "as is" without express or implied
40230557Sjimharris// warranty.
41230557Sjimharris
42230557Sjimharris/**
43230557Sjimharris * @file info_fn_imps.hpp
44230557Sjimharris * Contains implementations of lu_map_.
45230557Sjimharris */
46230557Sjimharris
47230557SjimharrisPB_DS_CLASS_T_DEC
48230557Sjimharrisinline typename PB_DS_CLASS_C_DEC::size_type
49230557SjimharrisPB_DS_CLASS_C_DEC::
50230557Sjimharrissize() const
51230557Sjimharris{ return std::distance(begin(), end()); }
52230557Sjimharris
53230557SjimharrisPB_DS_CLASS_T_DEC
54230557Sjimharrisinline typename PB_DS_CLASS_C_DEC::size_type
55230557SjimharrisPB_DS_CLASS_C_DEC::
56230557Sjimharrismax_size() const
57230557Sjimharris{ return s_entry_allocator.max_size(); }
58230557Sjimharris
59230557SjimharrisPB_DS_CLASS_T_DEC
60230557Sjimharrisinline bool
61230557SjimharrisPB_DS_CLASS_C_DEC::
62230557Sjimharrisempty() const
63230557Sjimharris{ return (m_p_l == NULL); }
64230557Sjimharris