]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Makefile.am: Add initializer_list to the headers.
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 3 Jul 2008 09:42:30 +0000 (09:42 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 3 Jul 2008 09:42:30 +0000 (09:42 +0000)
2008-07-03  Paolo Carlini  <paolo.carlini@oracle.com>

* libsupc++/Makefile.am: Add initializer_list to the headers.
* libsupc++/Makefile.in: Regenerate.

* libsupc++/initializer_list: Minor cosmetic changes.

From-SVN: r137409

libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/Makefile.am
libstdc++-v3/libsupc++/Makefile.in
libstdc++-v3/libsupc++/initializer_list

index 6f0b4152c47a16d82be99e1e09e857c4591e481c..6459c758156921f642cb9e241d3224351fc74f51 100644 (file)
@@ -1,3 +1,10 @@
+2008-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * libsupc++/Makefile.am: Add initializer_list to the headers.
+       * libsupc++/Makefile.in: Regenerate.
+
+       * libsupc++/initializer_list: Minor cosmetic changes.
+
 2008-07-02  Jason Merrill  <jason@redhat.com>
 
        * libsupc++/initializer_list: Uglify and wrap in 
index 366efa27428083d99d1e238b369ff6402f9e2990..c0412f0b8ed549c96eb87956055d7e42bd7e4747 100644 (file)
@@ -1,6 +1,6 @@
 ## Makefile for the GNU C++ Support library.
 ##
-## Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007
+## Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 ## Free Software Foundation, Inc.
 ##
 ## Process this file with automake to produce Makefile.in.
@@ -33,7 +33,8 @@ noinst_LTLIBRARIES = libsupc++convenience.la
 
 
 headers = \
-       exception new typeinfo cxxabi.h cxxabi-forced.h exception_defines.h
+       exception new typeinfo cxxabi.h cxxabi-forced.h exception_defines.h \
+       initializer_list
 
 if GLIBCXX_HOSTED
   c_sources = \
index 76e34de03bfc5a3f5828c396f433f6f84fd02030..0f7cf8c517e09657300261fc0a944b7018cd4520 100644 (file)
@@ -354,7 +354,8 @@ toolexeclib_LTLIBRARIES = libsupc++.la
 # 2) integrated libsupc++convenience.la that is to be a part of libstdc++.a
 noinst_LTLIBRARIES = libsupc++convenience.la
 headers = \
-       exception new typeinfo cxxabi.h cxxabi-forced.h exception_defines.h
+       exception new typeinfo cxxabi.h cxxabi-forced.h exception_defines.h \
+       initializer_list
 
 @GLIBCXX_HOSTED_TRUE@c_sources = \
 @GLIBCXX_HOSTED_TRUE@  cp-demangle.c 
index 3c81bb69c8b3a22a906bc933ccd8e47aa25f6e2b..18fb15bc552fcbe33a08aa5bb67dea8fbebcff22 100644 (file)
 namespace std
 {
   template<class _E>
-  class initializer_list
-  {
-    const _E* __array;
-    size_t __len;
+    class initializer_list
+    {
+      const _E* __array;
+      size_t __len;
 
-    // The compiler can call a private constructor.
-    initializer_list(const _E* __a, size_t __l)
+      // The compiler can call a private constructor.
+      initializer_list(const _E* __a, size_t __l)
       : __array(__a), __len(__l) { }
 
-  public:
-    initializer_list()
-      : __array(NULL), __len(0) {}
-    
-    size_t size() const                // number of elements
-    { return __len; }
-    const _E* begin() const    // first element
-    { return __array; }
-    const _E* end() const      // one past the last element
-    { return begin() + size(); }
+    public:
+      initializer_list()
+      : __array(NULL), __len(0) { }
+
+      // Number of elements.
+      size_t size() const
+      { return __len; }
+
+      // First element.
+      const _E* begin() const
+      { return __array; }
+
+      // One past the last element.
+      const _E* end() const
+      { return begin() + size(); }
   };
 }