libstdc++
constructors_destructor_fn_imps.hpp
Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 // Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc.
00004 //
00005 // This file is part of the GNU ISO C++ Library.  This library is free
00006 // software; you can redistribute it and/or modify it under the terms
00007 // of the GNU General Public License as published by the Free Software
00008 // Foundation; either version 3, or (at your option) any later
00009 // version.
00010 
00011 // This library is distributed in the hope that it will be useful, but
00012 // WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // General Public License for more details.
00015 
00016 // Under Section 7 of GPL version 3, you are granted additional
00017 // permissions described in the GCC Runtime Library Exception, version
00018 // 3.1, as published by the Free Software Foundation.
00019 
00020 // You should have received a copy of the GNU General Public License and
00021 // a copy of the GCC Runtime Library Exception along with this program;
00022 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
00023 // <http://www.gnu.org/licenses/>.
00024 
00025 // Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL.
00026 
00027 // Permission to use, copy, modify, sell, and distribute this software
00028 // is hereby granted without fee, provided that the above copyright
00029 // notice appears in all copies, and that both that copyright notice
00030 // and this permission notice appear in supporting documentation. None
00031 // of the above authors, nor IBM Haifa Research Laboratories, make any
00032 // representation about the suitability of this software for any
00033 // purpose. It is provided "as is" without express or implied
00034 // warranty.
00035 
00036 /**
00037  * @file constructors_destructor_fn_imps.hpp
00038  * Contains constructors_destructor_fn_imps applicable to different containers.
00039  */
00040 
00041 inline
00042 PB_DS_CLASS_NAME()
00043 { }
00044 
00045 inline
00046 PB_DS_CLASS_NAME(const PB_DS_CLASS_NAME& other) 
00047 : base_type((const base_type&)other)
00048 { }
00049 
00050 template<typename T0>
00051 inline
00052 PB_DS_CLASS_NAME(T0 t0) : base_type(t0)
00053 { }
00054 
00055 template<typename T0, typename T1>
00056 inline
00057 PB_DS_CLASS_NAME(T0 t0, T1 t1) : base_type(t0, t1)
00058 { }
00059 
00060 template<typename T0, typename T1, typename T2>
00061 inline
00062 PB_DS_CLASS_NAME(T0 t0, T1 t1, T2 t2) : base_type(t0, t1, t2)
00063 { }
00064 
00065 template<typename T0, typename T1, typename T2, typename T3>
00066 inline
00067 PB_DS_CLASS_NAME(T0 t0, T1 t1, T2 t2, T3 t3) 
00068 : base_type(t0, t1, t2, t3)
00069 { }
00070 
00071 template<typename T0, typename T1, typename T2, typename T3, typename T4>
00072 inline
00073 PB_DS_CLASS_NAME(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4) 
00074 : base_type(t0, t1, t2, t3, t4)
00075 { }
00076 
00077 template<typename T0, typename T1, typename T2, typename T3, typename T4,
00078      typename T5>
00079 inline
00080 PB_DS_CLASS_NAME(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) 
00081 : base_type(t0, t1, t2, t3, t4, t5)
00082 { }
00083 
00084 template<typename T0, typename T1, typename T2, typename T3, typename T4,
00085      typename T5, typename T6>
00086 inline
00087 PB_DS_CLASS_NAME(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6) 
00088 : base_type(t0, t1, t2, t3, t4, t5, t6)
00089 { }
00090 
00091 template<typename T0, typename T1, typename T2, typename T3, typename T4,
00092      typename T5, typename T6, typename T7>
00093 inline
00094 PB_DS_CLASS_NAME(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7) 
00095 : base_type(t0, t1, t2, t3, t4, t5, t6, t7)
00096 { }
00097 
00098 template<typename T0, typename T1, typename T2, typename T3, typename T4,
00099      typename T5, typename T6, typename T7, typename T8>
00100 inline
00101 PB_DS_CLASS_NAME(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8)
00102 : base_type(t0, t1, t2, t3, t4, t5, t6, t7, t8)
00103 { }