mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-30 06:18:50 +08:00
object_pool work in progress
This commit is contained in:
parent
ce809a4499
commit
c4db50baca
@ -71,7 +71,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
///
|
||||
//*************************************************************************
|
||||
template <typename T, typename... TArgs>
|
||||
template <typename T>
|
||||
void release(T&& object)
|
||||
{
|
||||
release_block(reinterpret_cast<char*>(&object));
|
||||
@ -126,7 +126,7 @@ namespace etl
|
||||
}
|
||||
|
||||
//*******************************
|
||||
size_t data_size() const
|
||||
size_t size() const
|
||||
{
|
||||
return size_t(reinterpret_cast<const char*>(next) - data());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user