Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
memory-faucet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
数学の武士
memory-faucet
Commits
53eea49d
Commit
53eea49d
authored
4 months ago
by
数学の武士
Browse files
Options
Downloads
Patches
Plain Diff
.
parent
1dbfbbd4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/memory-faucet.h
+1
-1
1 addition, 1 deletion
include/memory-faucet.h
src/memory-faucet.cpp
+1
-1
1 addition, 1 deletion
src/memory-faucet.cpp
with
2 additions
and
2 deletions
include/memory-faucet.h
+
1
−
1
View file @
53eea49d
...
@@ -38,7 +38,7 @@ public:
...
@@ -38,7 +38,7 @@ public:
memBuf
(
const
size_t
required_size
);
memBuf
(
const
size_t
required_size
);
memBuf
();
memBuf
();
~
memBuf
();
~
memBuf
();
void
*
ptr
();
void
*
&
ptr
();
void
free_memory
();
void
free_memory
();
int
get_size
()
const
;
int
get_size
()
const
;
void
get_memory
(
const
size_t
required_size
);
void
get_memory
(
const
size_t
required_size
);
...
...
This diff is collapsed.
Click to expand it.
src/memory-faucet.cpp
+
1
−
1
View file @
53eea49d
...
@@ -86,7 +86,7 @@ memBuf<mem, choose_type>::~memBuf()
...
@@ -86,7 +86,7 @@ memBuf<mem, choose_type>::~memBuf()
}
}
template
<
MemType
mem
,
buf_choose_policy
choose_type
>
template
<
MemType
mem
,
buf_choose_policy
choose_type
>
void
*
memBuf
<
mem
,
choose_type
>::
ptr
()
void
*
&
memBuf
<
mem
,
choose_type
>::
ptr
()
{
{
return
buf
;
return
buf
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment