From 8af3d2c097c2896de342b29088267f400a8b777d Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Mon, 26 Jan 2015 10:13:27 +0100 Subject: [PATCH] base_cpp: revised template argument names in memory_allocation.h --- base_cpp/include/embb/base/memory_allocation.h | 72 ++++++++++++++++++++++++++++++++++++------------------------------------ 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/base_cpp/include/embb/base/memory_allocation.h b/base_cpp/include/embb/base/memory_allocation.h index 235b481..3e6e565 100644 --- a/base_cpp/include/embb/base/memory_allocation.h +++ b/base_cpp/include/embb/base/memory_allocation.h @@ -521,7 +521,7 @@ class CacheAlignedAllocatable { /* * Forward declaration */ -template +template class Allocator; /* @@ -534,8 +534,8 @@ class Allocator < void > { typedef const void* const_pointer; typedef void value_type; - template struct rebind { - typedef Allocator other; + template struct rebind { + typedef Allocator other; }; }; @@ -552,36 +552,36 @@ class Allocator < void > { * * \ingroup CPP_BASE_MEMORY_ALLOCATION */ -template +template class Allocator { public: /** Quantity of elements type */ - typedef size_t size_type; + typedef size_t size_type; /** Difference between two pointers type */ - typedef ptrdiff_t difference_type; + typedef ptrdiff_t difference_type; /** Pointer to element type */ - typedef T* pointer; + typedef Type* pointer; /** Pointer to constant element type */ - typedef const T* const_pointer; + typedef const Type* const_pointer; /** Reference to element type */ - typedef T& reference; + typedef Type& reference; /** Reference to constant element type */ - typedef const T& const_reference; + typedef const Type& const_reference; /** Element type */ - typedef T value_type; + typedef Type value_type; /** - * Rebind allocator to type U + * Rebind allocator to type OtherType */ - template struct rebind { + template struct rebind { /** Type to rebind to */ - typedef Allocator other; + typedef Allocator other; }; /** @@ -602,8 +602,8 @@ class Allocator { * * Allows construction from allocators for different types (rebind) */ - template Allocator( - const Allocator& + template Allocator( + const Allocator& /**< [IN] Other allocator object*/ ) throw() {} @@ -642,7 +642,7 @@ class Allocator { } /** - * Allocates but doesn't initialize storage for elements of type T + * Allocates but doesn't initialize storage for elements of type Type * * \threadsafe * @@ -724,7 +724,7 @@ class Allocator { /* * Forward declaration */ -template +template class AllocatorCacheAligned; /* @@ -737,8 +737,8 @@ class AllocatorCacheAligned < void > { typedef const void* const_pointer; typedef void value_type; - template struct rebind { - typedef AllocatorCacheAligned other; + template struct rebind { + typedef AllocatorCacheAligned other; }; }; @@ -755,36 +755,36 @@ class AllocatorCacheAligned < void > { * * \ingroup CPP_BASE_MEMORY_ALLOCATION */ -template< typename T > -class AllocatorCacheAligned : public Allocator < T > { +template< typename Type > +class AllocatorCacheAligned : public Allocator < Type > { public: /** Quantity of elements type */ - typedef size_t size_type; + typedef size_t size_type; /** Difference between two pointers type */ - typedef ptrdiff_t difference_type; + typedef ptrdiff_t difference_type; /** Pointer to element type */ - typedef T* pointer; + typedef Type* pointer; /** Pointer to constant element type */ - typedef const T* const_pointer; + typedef const Type* const_pointer; /** Reference to element type */ - typedef T& reference; + typedef Type& reference; /** Reference to constant element type */ - typedef const T& const_reference; + typedef const Type& const_reference; /** Element type */ - typedef T value_type; + typedef Type value_type; /** - * Rebind allocator to type U + * Rebind allocator to type OtherType */ - template struct rebind { + template struct rebind { /** Type to rebind to */ - typedef Allocator other; + typedef Allocator other; }; /** @@ -799,16 +799,16 @@ class AllocatorCacheAligned : public Allocator < T > { const AllocatorCacheAligned& a /**< [IN] Other allocator object */ ) throw() - : Allocator < T >(a) { } + : Allocator < Type >(a) { } /** * Constructs allocator object * * Allows construction from allocators for different types (rebind) */ - template + template AllocatorCacheAligned( - const AllocatorCacheAligned& + const AllocatorCacheAligned& /**< [IN] Other allocator object*/ ) throw() { } @@ -818,7 +818,7 @@ class AllocatorCacheAligned : public Allocator < T > { ~AllocatorCacheAligned() throw() { } /** - * Allocates but doesn't initialize storage for elements of type T + * Allocates but doesn't initialize storage for elements of type Type * * \threadsafe * -- libgit2 0.26.0