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 {
/*
* Forward declaration
*/
template
<
typename
T
>
template
<
typename
T
ype
>
class
Allocator
;
/*
...
...
@@ -534,8 +534,8 @@ class Allocator < void > {
typedef
const
void
*
const_pointer
;
typedef
void
value_type
;
template
<
typename
U
>
struct
rebind
{
typedef
Allocator
<
U
>
other
;
template
<
typename
OtherType
>
struct
rebind
{
typedef
Allocator
<
OtherType
>
other
;
};
};
...
...
@@ -552,36 +552,36 @@ class Allocator < void > {
*
* \ingroup CPP_BASE_MEMORY_ALLOCATION
*/
template
<
typename
T
>
template
<
typename
T
ype
>
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
T
ype
*
pointer
;
/** Pointer to constant element type */
typedef
const
T
*
const_pointer
;
typedef
const
T
ype
*
const_pointer
;
/** Reference to element type */
typedef
T
&
reference
;
typedef
T
ype
&
reference
;
/** Reference to constant element type */
typedef
const
T
&
const_reference
;
typedef
const
T
ype
&
const_reference
;
/** 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 */
typedef
Allocator
<
U
>
other
;
typedef
Allocator
<
OtherType
>
other
;
};
/**
...
...
@@ -602,8 +602,8 @@ class Allocator {
*
* Allows construction from allocators for different types (rebind)
*/
template
<
typename
U
>
Allocator
(
const
Allocator
<
U
>&
template
<
typename
OtherType
>
Allocator
(
const
Allocator
<
OtherType
>&
/**< [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 T
ype
*
* \threadsafe
*
...
...
@@ -724,7 +724,7 @@ class Allocator {
/*
* Forward declaration
*/
template
<
typename
T
>
template
<
typename
T
ype
>
class
AllocatorCacheAligned
;
/*
...
...
@@ -737,8 +737,8 @@ class AllocatorCacheAligned < void > {
typedef
const
void
*
const_pointer
;
typedef
void
value_type
;
template
<
typename
U
>
struct
rebind
{
typedef
AllocatorCacheAligned
<
U
>
other
;
template
<
typename
OtherType
>
struct
rebind
{
typedef
AllocatorCacheAligned
<
OtherType
>
other
;
};
};
...
...
@@ -755,36 +755,36 @@ class AllocatorCacheAligned < void > {
*
* \ingroup CPP_BASE_MEMORY_ALLOCATION
*/
template
<
typename
T
>
class
AllocatorCacheAligned
:
public
Allocator
<
T
>
{
template
<
typename
T
ype
>
class
AllocatorCacheAligned
:
public
Allocator
<
T
ype
>
{
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
T
ype
*
pointer
;
/** Pointer to constant element type */
typedef
const
T
*
const_pointer
;
typedef
const
T
ype
*
const_pointer
;
/** Reference to element type */
typedef
T
&
reference
;
typedef
T
ype
&
reference
;
/** Reference to constant element type */
typedef
const
T
&
const_reference
;
typedef
const
T
ype
&
const_reference
;
/** 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 */
typedef
Allocator
<
U
>
other
;
typedef
Allocator
<
OtherType
>
other
;
};
/**
...
...
@@ -799,16 +799,16 @@ class AllocatorCacheAligned : public Allocator < T > {
const
AllocatorCacheAligned
&
a
/**< [IN] Other allocator object */
)
throw
()
:
Allocator
<
T
>
(
a
)
{
}
:
Allocator
<
T
ype
>
(
a
)
{
}
/**
* Constructs allocator object
*
* Allows construction from allocators for different types (rebind)
*/
template
<
typename
U
>
template
<
typename
OtherType
>
AllocatorCacheAligned
(
const
AllocatorCacheAligned
<
U
>&
const
AllocatorCacheAligned
<
OtherType
>&
/**< [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 T
ype
*
* \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