1139804Simp// -*- C++ -*- 240711Swollman 340711Swollman// Copyright (C) 2005, 2006 Free Software Foundation, Inc. 440711Swollman// 540711Swollman// This file is part of the GNU ISO C++ Library. This library is free 640711Swollman// software; you can redistribute it and/or modify it under the terms 740711Swollman// of the GNU General Public License as published by the Free Software 840711Swollman// Foundation; either version 2, or (at your option) any later 940711Swollman// version. 1040711Swollman 1140711Swollman// This library is distributed in the hope that it will be useful, but 1240711Swollman// WITHOUT ANY WARRANTY; without even the implied warranty of 1340711Swollman// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1440711Swollman// General Public License for more details. 15152543Syongari 1640711Swollman// You should have received a copy of the GNU General Public License 1740711Swollman// along with this library; see the file COPYING. If not, write to 1840711Swollman// the Free Software Foundation, 59 Temple Place - Suite 330, Boston, 1940711Swollman// MA 02111-1307, USA. 2040711Swollman 2140711Swollman// As a special exception, you may use this file as part of a free 2240711Swollman// software library without restriction. Specifically, if other files 2340711Swollman// instantiate templates or use macros or inline functions from this 2440711Swollman// file, or you compile this file and link it with other files to 2540711Swollman// produce an executable, this file does not by itself cause the 2640711Swollman// resulting executable to be covered by the GNU General Public 2740711Swollman// License. This exception does not however invalidate any other 2840711Swollman// reasons why the executable file might be covered by the GNU General 2940711Swollman// Public License. 3040711Swollman 3140711Swollman// Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL. 3240711Swollman 3340711Swollman// Permission to use, copy, modify, sell, and distribute this software 3440711Swollman// is hereby granted without fee, provided that the above copyright 3540711Swollman// notice appears in all copies, and that both that copyright notice 3640711Swollman// and this permission notice appear in supporting documentation. None 3740711Swollman// of the above authors, nor IBM Haifa Research Laboratories, make any 3840711Swollman// representation about the suitability of this software for any 3940711Swollman// purpose. It is provided "as is" without express or implied 4040711Swollman// warranty. 4140711Swollman 4240711Swollman/** 4340711Swollman * @file counter_lu_policy_imp.hpp 4440711Swollman * Contains a lu counter policy implementation. 4540711Swollman */ 4640711Swollman 4740711SwollmanPB_DS_CLASS_T_DEC 4840711Swollmandetail::counter_lu_metadata<typename Allocator::size_type> 4940711SwollmanPB_DS_CLASS_C_DEC:: 5040711Swollmanoperator()() const 5140711Swollman{ return (base_type::operator()(max_count)); } 5240711Swollman 5340711SwollmanPB_DS_CLASS_T_DEC 5440711Swollmanbool 5540711SwollmanPB_DS_CLASS_C_DEC:: 5640711Swollmanoperator()(metadata_reference r_data) const 5740711Swollman{ return (base_type::operator()(r_data, max_count)); } 58168791Sjhb