Skip to content
Snippets Groups Projects
Commit 9c3c6e30 authored by 数学の武士's avatar 数学の武士
Browse files

.

parent 4d04203c
Branches main
No related tags found
No related merge requests found
...@@ -39,6 +39,7 @@ public: ...@@ -39,6 +39,7 @@ public:
memBuf(); memBuf();
~memBuf(); ~memBuf();
void* ptr(); void* ptr();
void** ptr();
const void* ptr() const; const void* ptr() const;
void free_memory(); void free_memory();
int get_size() const; int get_size() const;
......
...@@ -91,6 +91,12 @@ void* memBuf<mem, choose_type>::ptr() ...@@ -91,6 +91,12 @@ void* memBuf<mem, choose_type>::ptr()
return buf; return buf;
} }
template< MemType mem, buf_choose_policy choose_type >
void** memBuf<mem, choose_type>::ptr()
{
return &buf;
}
template< MemType mem, buf_choose_policy choose_type > template< MemType mem, buf_choose_policy choose_type >
const void* memBuf<mem, choose_type>::ptr() const const void* memBuf<mem, choose_type>::ptr() const
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment