info_fn_imps.hpp revision 169691
194575Sdes// -*- C++ -*-
294575Sdes
394575Sdes// Copyright (C) 2005, 2006 Free Software Foundation, Inc.
494575Sdes//
594575Sdes// This file is part of the GNU ISO C++ Library.  This library is free
694575Sdes// software; you can redistribute it and/or modify it under the terms
794575Sdes// of the GNU General Public License as published by the Free Software
894575Sdes// Foundation; either version 2, or (at your option) any later
994575Sdes// version.
1094575Sdes
1194575Sdes// This library is distributed in the hope that it will be useful, but
1294575Sdes// WITHOUT ANY WARRANTY; without even the implied warranty of
1394575Sdes// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1494575Sdes// General Public License for more details.
1594575Sdes
1694575Sdes// You should have received a copy of the GNU General Public License
1794575Sdes// along with this library; see the file COPYING.  If not, write to
1894575Sdes// the Free Software Foundation, 59 Temple Place - Suite 330, Boston,
1994575Sdes// MA 02111-1307, USA.
2094575Sdes
2194575Sdes// As a special exception, you may use this file as part of a free
2294575Sdes// software library without restriction.  Specifically, if other files
2394575Sdes// instantiate templates or use macros or inline functions from this
2494575Sdes// file, or you compile this file and link it with other files to
2594575Sdes// produce an executable, this file does not by itself cause the
2694575Sdes// resulting executable to be covered by the GNU General Public
2794575Sdes// License.  This exception does not however invalidate any other
2894575Sdes// reasons why the executable file might be covered by the GNU General
2994575Sdes// Public License.
3094575Sdes
3194575Sdes// Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL.
3294575Sdes
3394575Sdes// Permission to use, copy, modify, sell, and distribute this software
3494575Sdes// is hereby granted without fee, provided that the above copyright
3594575Sdes// notice appears in all copies, and that both that copyright notice
3694575Sdes// and this permission notice appear in supporting documentation. None
3794577Sdes// of the above authors, nor IBM Haifa Research Laboratories, make any
3894577Sdes// representation about the suitability of this software for any
3994577Sdes// purpose. It is provided "as is" without express or implied
4094577Sdes// warranty.
4194575Sdes
4294575Sdes/**
4394577Sdes * @file info_fn_imps.hpp
4494577Sdes * Contains an implementation class for ov_tree_.
4594575Sdes */
4694575Sdes
4794575SdesPB_DS_CLASS_T_DEC
4894577Sdesinline typename PB_DS_CLASS_C_DEC::size_type
4994575SdesPB_DS_CLASS_C_DEC::
5094575Sdessize() const
5194575Sdes{
5294575Sdes  _GLIBCXX_DEBUG_ONLY(assert_valid();)
5394575Sdes  return m_size;
5494577Sdes}
5594575Sdes
5694577SdesPB_DS_CLASS_T_DEC
57116393Smbrinline typename PB_DS_CLASS_C_DEC::size_type
5894577SdesPB_DS_CLASS_C_DEC::
5996198Sdesmax_size() const
6096198Sdes{ return s_value_alloc.max_size(); }
6196198Sdes
6296198SdesPB_DS_CLASS_T_DEC
6396198Sdesinline bool
6494575SdesPB_DS_CLASS_C_DEC::
6596198Sdesempty() const
6694575Sdes{ return size() == 0; }
67116393Smbr