Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8af3d2c0
authored
Jan 26, 2015
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base_cpp: revised template argument names in memory_allocation.h
parent
6602c21b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
36 deletions
+36
-36
base_cpp/include/embb/base/memory_allocation.h
+36
-36
No files found.
base_cpp/include/embb/base/memory_allocation.h
View file @
8af3d2c0
...
@@ -521,7 +521,7 @@ class CacheAlignedAllocatable {
...
@@ -521,7 +521,7 @@ class CacheAlignedAllocatable {
/*
/*
* Forward declaration
* Forward declaration
*/
*/
template
<
typename
T
>
template
<
typename
T
ype
>
class
Allocator
;
class
Allocator
;
/*
/*
...
@@ -534,8 +534,8 @@ class Allocator < void > {
...
@@ -534,8 +534,8 @@ class Allocator < void > {
typedef
const
void
*
const_pointer
;
typedef
const
void
*
const_pointer
;
typedef
void
value_type
;
typedef
void
value_type
;
template
<
typename
U
>
struct
rebind
{
template
<
typename
OtherType
>
struct
rebind
{
typedef
Allocator
<
U
>
other
;
typedef
Allocator
<
OtherType
>
other
;
};
};
};
};
...
@@ -552,36 +552,36 @@ class Allocator < void > {
...
@@ -552,36 +552,36 @@ class Allocator < void > {
*
*
* \ingroup CPP_BASE_MEMORY_ALLOCATION
* \ingroup CPP_BASE_MEMORY_ALLOCATION
*/
*/
template
<
typename
T
>
template
<
typename
T
ype
>
class
Allocator
{
class
Allocator
{
public
:
public
:
/** Quantity of elements type */
/** Quantity of elements type */
typedef
size_t
size_type
;
typedef
size_t
size_type
;
/** Difference between two pointers type */
/** Difference between two pointers type */
typedef
ptrdiff_t
difference_type
;
typedef
ptrdiff_t
difference_type
;
/** Pointer to element type */
/** Pointer to element type */
typedef
T
*
pointer
;
typedef
T
ype
*
pointer
;
/** Pointer to constant element type */
/** Pointer to constant element type */
typedef
const
T
*
const_pointer
;
typedef
const
T
ype
*
const_pointer
;
/** Reference to element type */
/** Reference to element type */
typedef
T
&
reference
;
typedef
T
ype
&
reference
;
/** Reference to constant element type */
/** Reference to constant element type */
typedef
const
T
&
const_reference
;
typedef
const
T
ype
&
const_reference
;
/** Element type */
/** Element type */
typedef
T
value_type
;
typedef
T
ype
value_type
;
/**
/**
* Rebind allocator to type
U
* Rebind allocator to type
OtherType
*/
*/
template
<
typename
U
>
struct
rebind
{
template
<
typename
OtherType
>
struct
rebind
{
/** Type to rebind to */
/** Type to rebind to */
typedef
Allocator
<
U
>
other
;
typedef
Allocator
<
OtherType
>
other
;
};
};
/**
/**
...
@@ -602,8 +602,8 @@ class Allocator {
...
@@ -602,8 +602,8 @@ class Allocator {
*
*
* Allows construction from allocators for different types (rebind)
* Allows construction from allocators for different types (rebind)
*/
*/
template
<
typename
U
>
Allocator
(
template
<
typename
OtherType
>
Allocator
(
const
Allocator
<
U
>&
const
Allocator
<
OtherType
>&
/**< [IN] Other allocator object*/
/**< [IN] Other allocator object*/
)
)
throw
()
{}
throw
()
{}
...
@@ -642,7 +642,7 @@ class Allocator {
...
@@ -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 T
ype
*
*
* \threadsafe
* \threadsafe
*
*
...
@@ -724,7 +724,7 @@ class Allocator {
...
@@ -724,7 +724,7 @@ class Allocator {
/*
/*
* Forward declaration
* Forward declaration
*/
*/
template
<
typename
T
>
template
<
typename
T
ype
>
class
AllocatorCacheAligned
;
class
AllocatorCacheAligned
;
/*
/*
...
@@ -737,8 +737,8 @@ class AllocatorCacheAligned < void > {
...
@@ -737,8 +737,8 @@ class AllocatorCacheAligned < void > {
typedef
const
void
*
const_pointer
;
typedef
const
void
*
const_pointer
;
typedef
void
value_type
;
typedef
void
value_type
;
template
<
typename
U
>
struct
rebind
{
template
<
typename
OtherType
>
struct
rebind
{
typedef
AllocatorCacheAligned
<
U
>
other
;
typedef
AllocatorCacheAligned
<
OtherType
>
other
;
};
};
};
};
...
@@ -755,36 +755,36 @@ class AllocatorCacheAligned < void > {
...
@@ -755,36 +755,36 @@ class AllocatorCacheAligned < void > {
*
*
* \ingroup CPP_BASE_MEMORY_ALLOCATION
* \ingroup CPP_BASE_MEMORY_ALLOCATION
*/
*/
template
<
typename
T
>
template
<
typename
T
ype
>
class
AllocatorCacheAligned
:
public
Allocator
<
T
>
{
class
AllocatorCacheAligned
:
public
Allocator
<
T
ype
>
{
public
:
public
:
/** Quantity of elements type */
/** Quantity of elements type */
typedef
size_t
size_type
;
typedef
size_t
size_type
;
/** Difference between two pointers type */
/** Difference between two pointers type */
typedef
ptrdiff_t
difference_type
;
typedef
ptrdiff_t
difference_type
;
/** Pointer to element type */
/** Pointer to element type */
typedef
T
*
pointer
;
typedef
T
ype
*
pointer
;
/** Pointer to constant element type */
/** Pointer to constant element type */
typedef
const
T
*
const_pointer
;
typedef
const
T
ype
*
const_pointer
;
/** Reference to element type */
/** Reference to element type */
typedef
T
&
reference
;
typedef
T
ype
&
reference
;
/** Reference to constant element type */
/** Reference to constant element type */
typedef
const
T
&
const_reference
;
typedef
const
T
ype
&
const_reference
;
/** Element type */
/** Element type */
typedef
T
value_type
;
typedef
T
ype
value_type
;
/**
/**
* Rebind allocator to type
U
* Rebind allocator to type
OtherType
*/
*/
template
<
typename
U
>
struct
rebind
{
template
<
typename
OtherType
>
struct
rebind
{
/** Type to rebind to */
/** Type to rebind to */
typedef
Allocator
<
U
>
other
;
typedef
Allocator
<
OtherType
>
other
;
};
};
/**
/**
...
@@ -799,16 +799,16 @@ class AllocatorCacheAligned : public Allocator < T > {
...
@@ -799,16 +799,16 @@ class AllocatorCacheAligned : public Allocator < T > {
const
AllocatorCacheAligned
&
a
const
AllocatorCacheAligned
&
a
/**< [IN] Other allocator object */
/**< [IN] Other allocator object */
)
throw
()
)
throw
()
:
Allocator
<
T
>
(
a
)
{
}
:
Allocator
<
T
ype
>
(
a
)
{
}
/**
/**
* Constructs allocator object
* Constructs allocator object
*
*
* Allows construction from allocators for different types (rebind)
* Allows construction from allocators for different types (rebind)
*/
*/
template
<
typename
U
>
template
<
typename
OtherType
>
AllocatorCacheAligned
(
AllocatorCacheAligned
(
const
AllocatorCacheAligned
<
U
>&
const
AllocatorCacheAligned
<
OtherType
>&
/**< [IN] Other allocator object*/
/**< [IN] Other allocator object*/
)
throw
()
{
}
)
throw
()
{
}
...
@@ -818,7 +818,7 @@ class AllocatorCacheAligned : public Allocator < T > {
...
@@ -818,7 +818,7 @@ class AllocatorCacheAligned : public Allocator < T > {
~
AllocatorCacheAligned
()
throw
()
{
}
~
AllocatorCacheAligned
()
throw
()
{
}
/**
/**
* Allocates but doesn't initialize storage for elements of type T
* Allocates but doesn't initialize storage for elements of type T
ype
*
*
* \threadsafe
* \threadsafe
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment