Make the names for the guards for ETL private headers consistent WRT the number of...
[synfig.git] / ETL / trunk / ETL / _trivial.h
index 4732ad3..a819c1d 100644 (file)
@@ -1,7 +1,7 @@
 /*! ========================================================================
 ** Extended Template Library
 ** Trivializing Template Class Implementation
-** $Id: _trivial.h,v 1.1.1.1 2005/01/04 01:31:48 darco Exp $
+** $Id$
 **
 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
 **
@@ -24,8 +24,8 @@
 
 /* === S T A R T =========================================================== */
 
-#ifndef __ETL_TRIVIAL_H
-#define __ETL_TRIVIAL_H
+#ifndef __ETL__TRIVIAL_H
+#define __ETL__TRIVIAL_H
 
 /* === H E A D E R S ======================================================= */
 
@@ -55,33 +55,33 @@ class trivial
        typedef const T& const_reference;
        typedef T* pointer;
        typedef const T* const_pointer;
-       
+
        char data[sizeof(T)];
 public:
-       operator reference() 
+       operator reference()
        { return *reinterpret_cast<pointer>(data); }
 
        // HACK - Rather dangerous
-       //operator reference()const 
+       //operator reference()const
        //{ return *reinterpret_cast<pointer>(const_cast<char *>(data)); }
-       
-       operator const_reference()const 
+
+       operator const_reference()const
        { return *reinterpret_cast<const_pointer>(data); }
-       
+
        reference get()
        { return *reinterpret_cast<pointer>(data); }
 
        const_reference get()const
        { return *reinterpret_cast<const_pointer>(data); }
-       
+
        void construct()
        { new(&get()) value_type(); }
 
        void destruct()
        { get().~value_type(); }
-       
+
        void destroy() { destruct(); }
-       
+
        template<class U> reference
        operator=(const U &rhs)
        { return get()=rhs; }
@@ -125,11 +125,11 @@ public:
        template<class U> reference
        operator<<=(const U &rhs)
        { return get()<<=rhs; }
-       
-       operator bool()const 
+
+       operator bool()const
        { return get(); }
 
-       bool operator!()const 
+       bool operator!()const
        { return !get(); }
 }; // END of template class trivial